diff options
-rw-r--r-- | layouts/index.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index af89f0f..23102f6 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,9 @@ <li> <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2> <div class=date> - {{ .Date.Format (.Site.Params.dateform | default "January 2006") }} + {{if not .Date.IsZero }} + {{ .Date.Format (.Site.Params.dateform | default "January 2006") }} + {{end}} </div> </li> {{ end }} |