aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
authorJulien Dessaux2021-03-12 19:36:17 +0100
committerJulien Dessaux2021-03-12 19:36:17 +0100
commit652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa (patch)
treecb2788aae124e8b928dc6b3b428b28269a8aa060 /layouts/_default
parentNew hugo article (diff)
downloadwww-652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa.tar.gz
www-652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa.tar.bz2
www-652becdaaaa09c6ee9cb0b8bcf4bec50d246dcaa.zip
Some more articles reformatting
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html2
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" . }}