Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/davidhampgonsalves/hugo-black-and-light-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hamp-Gonsalves <davidhampgonsalves@gmail.com>2020-06-13 16:18:32 +0300
committerDavid Hamp-Gonsalves <davidhampgonsalves@gmail.com>2020-06-13 16:18:32 +0300
commit799d357fc0ce5da91a2a4d749bbc3ff578b264d0 (patch)
tree5b17aa19aacb93596c960cbe7eb530c1978c6f1b
parentbe40b077364590eb9694fd085bd6c906cd90f74d (diff)
support posts without dates
-rw-r--r--layouts/index.html4
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 }}