diff options
author | Julien Dessaux | 2021-03-12 19:36:17 +0100 |
---|---|---|
committer | Julien Dessaux | 2021-03-12 19:36:17 +0100 |
commit | 652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa (patch) | |
tree | cb2788aae124e8b928dc6b3b428b28269a8aa060 /layouts/_default/single.html | |
parent | New hugo article (diff) | |
download | www-652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa.tar.gz www-652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa.tar.bz2 www-652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa.zip |
Some more articles reformatting
Diffstat (limited to '')
-rw-r--r-- | layouts/_default/single.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a82fe0d..aa27b23 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,7 +2,7 @@ <h1>{{ .Title }}</h1> -{{ .PublishDate.Format "2006-01-02" }} - {{ .Description }} +{{ if ne .PublishDate.Year 1 }}{{ .PublishDate.Format "2006-01-02" }} - {{ end }}{{ .Description }} {{ partial "toc.html" . }} |