diff options
author | Vicky <vicky@vickylai.io> | 2018-03-25 18:12:37 +0300 |
---|---|---|
committer | Vicky <vicky@vickylai.io> | 2018-03-25 18:12:37 +0300 |
commit | 65b49aa8c810d5fbaf809e58fe3a5a55bb95ffba (patch) | |
tree | 400754d69b845e0c92dc112e32186846be97c290 /layouts/blog/list.html | |
parent | b59b398e2f27a6b67704e78fd0bc63de691e64e9 (diff) | |
parent | 96c9303c4fd9e0b2f69d6cbf101005a338f3236c (diff) |
Merge branch 'master' of https://github.com/hivickylai/hugo-theme-introduction
Diffstat (limited to 'layouts/blog/list.html')
-rw-r--r-- | layouts/blog/list.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 6597d86..8da589e 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -4,7 +4,7 @@ <div class="section" id="top"><!-- Parent section --> <div class="container hero {{ if .Site.Params.fadeIn }} fade-in one {{ end }}"><!-- Begin Title --> - <h1 class="bold-title is-1">{{ .Site.Params.blogHead }}</h1> + <h1 class="bold-title is-1">{{ .Site.Params.blogHead | default "Blog" }}</h1> </div><!-- End Title --> <!-- Everything below fades in two! --> @@ -13,13 +13,13 @@ <div class="container"><!-- Begin Nav bar --> {{ partial "nav-list.html" . }} </div><!-- End Nav bar --> - + <div class="container"><!-- Begin Blog container --> {{ if .Site.Params.showLatest }} <h2 class="title is-2 top-pad">Latest Post</h2> - {{ range first 1 (where .Data.Pages.ByPublishDate.Reverse "Section" "blog") }} - <div class="summary">{{ .Date.Format .Site.Params.dateForm }} + {{ range first 1 (where .Data.Pages.ByPublishDate.Reverse "Section" "blog") }} + <div class="summary">{{ .Date.Format (.Site.Params.dateform | default "Jan 02, 2006") }} <h3 class="title is-3 strong-post-title"><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3> <div class="markdown"> {{ .Summary }} |