miscellaneous improvements
This commit is contained in:
parent
65526cbf20
commit
347acbe70e
8 changed files with 22 additions and 60 deletions
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
title: "{{ replace .Name "-" " " | title }}"
|
|
||||||
date: {{ .Date }}
|
|
||||||
draft: true
|
|
||||||
---
|
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
baseurl = "http://example.org/"
|
|
||||||
languageCode = "en-us"
|
|
||||||
title = "Hugo Cards"
|
|
||||||
theme = "hugo-cards"
|
|
||||||
themesDir = "../.."
|
|
||||||
paginate = 6
|
|
||||||
|
|
||||||
[params]
|
|
||||||
builtBy = "bool"
|
|
||||||
defaultImage = "gopher.jpg"
|
|
||||||
|
|
||||||
facebook = ""
|
|
||||||
quora = ""
|
|
||||||
twitter = "http://twitter.com/bul_ikana"
|
|
||||||
github = "http://github.com/bul-ikana"
|
|
||||||
email = ""
|
|
||||||
|
|
||||||
fbLikeBox = ""
|
|
||||||
fbAppId = ""
|
|
||||||
fbPageUrl = ""
|
|
||||||
fbPageTitle = ""
|
|
||||||
|
|
||||||
analytics = ""
|
|
||||||
disqus = ""
|
|
||||||
|
|
||||||
[params.copyright]
|
|
||||||
name = "bool"
|
|
||||||
link = "https://bool.netlify.com"
|
|
||||||
|
|
|
@ -1,40 +1,31 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
{{ if .Site.Params.favicon }}
|
{{ if .Site.Params.favicon -}}
|
||||||
<link rel="icon" href="{{ .Site.BaseURL }}img/{{ .Site.Params.favicon }}">
|
<link rel="icon" href="{{ .Site.BaseURL }}img/{{ .Site.Params.favicon }}">
|
||||||
{{ end }}
|
{{- end }}
|
||||||
|
{{ $title := or (i18n .Title) .Title -}}
|
||||||
<title>{{ .Title}}{{if .IsPage}} - {{ .Site.Title }}{{ end }}</title>
|
<title>{{ $title }}{{ if ne $title .Site.Title }} - {{ .Site.Title }}{{ end }}</title>
|
||||||
|
{{ hugo.Generator }}
|
||||||
{{ $main := resources.Get "sass/main.scss" | toCSS | minify }}
|
{{ $main := resources.Get "sass/main.scss" | toCSS | minify -}}
|
||||||
<link rel="stylesheet" href="{{ $main.Permalink }}">
|
<link rel="stylesheet" href="{{ $main.Permalink }}">
|
||||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||||
|
{{ block "config" . }}{{ end }}
|
||||||
{{ block "config" . }} {{ end }}
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
{{ partial "header.html" . }}
|
||||||
{{ partial "header.html" . }}
|
<div class="container">
|
||||||
|
<div class="wrapper">
|
||||||
<div class="container">
|
{{ block "main" . }} {{ end }}
|
||||||
<div class="wrapper">
|
|
||||||
{{ block "main" . }} {{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
|
|
||||||
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>-->
|
<!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>-->
|
||||||
<script src="{{ .Site.BaseURL }}js/jquery.min.js"></script>
|
<script src="{{ .Site.BaseURL }}js/jquery.min.js"></script>
|
||||||
<script src="{{ .Site.BaseURL }}js/bootstrap.min.js"></script>
|
<script src="{{ .Site.BaseURL }}js/bootstrap.min.js"></script>
|
||||||
{{ block "appjs" . }} {{ end }}
|
{{ block "appjs" . }} {{ end }}
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{ $section := or .Section "posts" }}
|
{{ $section := or .Section .Site.Params.homeSection "posts" }}
|
||||||
{{ $paginator := .Paginate (where .Site.RegularPages "Section" $section) }}
|
{{ $paginator := .Paginate (where .Site.RegularPages "Section" $section) }}
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
{{ partial "card.html" . }}
|
{{ partial "card.html" . }}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
<header class="post-header card-header">
|
<header class="post-header card-header">
|
||||||
<h2 class="post-title" itemprop="name headline">{{ .Title }}</h2>
|
<h2 class="post-title" itemprop="name headline">{{ .Title }}</h2>
|
||||||
|
{{ if .Date -}}
|
||||||
<p class="post-meta">
|
<p class="post-meta">
|
||||||
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'
|
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'
|
||||||
itemprop="datePublished">{{ .Date.Format (i18n "dateFormat") }}</time>
|
itemprop="datePublished">{{ .Date.Format (i18n "dateFormat") }}</time>
|
||||||
|
@ -13,8 +14,9 @@
|
||||||
<span itemprop="author" itemscope
|
<span itemprop="author" itemscope
|
||||||
itemtype="http://schema.org/Person">
|
itemtype="http://schema.org/Person">
|
||||||
<span itemprop="name">{{ . }}</span></span>
|
<span itemprop="name">{{ . }}</span></span>
|
||||||
{{ end }}
|
{{- end }}
|
||||||
</p>
|
</p>
|
||||||
|
{{ end }}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="post-content card-body" itemprop="articleBody">
|
<div class="post-content card-body" itemprop="articleBody">
|
||||||
|
|
|
@ -16,8 +16,10 @@
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<span class="card-title h4">{{ .Title | truncate 25 }}</span>
|
<span class="card-title h4">{{ .Title | truncate 25 }}</span>
|
||||||
|
{{ if .Date -}}
|
||||||
<span class="post-meta pull-right">
|
<span class="post-meta pull-right">
|
||||||
<small>{{ .Date.Format (i18n "dateFormat") }}</small></span>
|
<small>{{ .Date.Format (i18n "dateFormat") }}</small></span>
|
||||||
|
{{- end }}
|
||||||
<p class="card-text">{{ .Summary | plainify | truncate 100 }}</p>
|
<p class="card-text">{{ .Summary | plainify | truncate 100 }}</p>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -42,7 +42,9 @@
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}"
|
<a href="{{ .Permalink }}"
|
||||||
class="text-decoration-none">{{ .Title }}</a>
|
class="text-decoration-none">{{ .Title }}</a>
|
||||||
|
{{ if .Date -}}
|
||||||
<small> {{ .Date.Format (i18n "dateFormat") }}</small>
|
<small> {{ .Date.Format (i18n "dateFormat") }}</small>
|
||||||
|
{{- end }}
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="card mt-3">
|
<div class="card mt-3">
|
||||||
<div class="card-body bg-light">
|
<div class="card-body bg-light">
|
||||||
<h2 class="card-text"> {{ .Title }}</h2>
|
<h2 class="card-text"> {{i18n .Title }}</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue