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

github.com/curttimson/hugo-theme-massively.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/posts/featured.html')
-rw-r--r--layouts/partials/posts/featured.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/posts/featured.html b/layouts/partials/posts/featured.html
index 53ad713..1a03c76 100644
--- a/layouts/partials/posts/featured.html
+++ b/layouts/partials/posts/featured.html
@@ -3,7 +3,7 @@
{{ range .firstpost }}
<article class="post featured">
<header class="major">
- {{ if .Date }}
+ {{ if not .Date.IsZero }}
<span class="date">{{ .Date.Format "January 2, 2006" }}</span>
{{ end }}
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>