diff options
author | Vicky <vicky@vickylai.com> | 2018-09-16 06:22:05 +0300 |
---|---|---|
committer | Vicky <vicky@vickylai.com> | 2018-09-16 06:22:05 +0300 |
commit | 7bb579950a0bda95a9bc14bf26b526cf3ac9662d (patch) | |
tree | 00ace78075e959b20f49d2accd5c79c0c9bab882 /layouts/blog/list.html | |
parent | 2f8e809667ceaf7c973e7ecead31ae01b38bab47 (diff) |
Fix #81
- Hide date part in posts if no date is given
Diffstat (limited to 'layouts/blog/list.html')
-rw-r--r-- | layouts/blog/list.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/blog/list.html b/layouts/blog/list.html index c2c6583..775277b 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -6,7 +6,7 @@ {{ if .Site.Params.home.showLatest | default true }} <h2 class="title is-2 top-pad">{{ i18n "index_blog_latestPosts" . }}</h2> {{ range first 1 .Pages.ByPublishDate.Reverse }} - <div class="summary">{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} + <div class="summary">{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }} <h3 class="title is-3 strong-post-title"> <a href="{{ .Permalink }}"> {{ .Title }} |