diff options
author | David Hamp-Gonsalves <davidhampgonsalves@gmail.com> | 2020-06-13 16:18:32 +0300 |
---|---|---|
committer | David Hamp-Gonsalves <davidhampgonsalves@gmail.com> | 2020-06-13 16:18:32 +0300 |
commit | 799d357fc0ce5da91a2a4d749bbc3ff578b264d0 (patch) | |
tree | 5b17aa19aacb93596c960cbe7eb530c1978c6f1b | |
parent | be40b077364590eb9694fd085bd6c906cd90f74d (diff) |
support posts without dates
-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 }} |