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

github.com/chipsenkbeil/grid-side.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/partials/post/page-item.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/post/page-item.html b/layouts/partials/post/page-item.html
index dd54be2..123e8c2 100644
--- a/layouts/partials/post/page-item.html
+++ b/layouts/partials/post/page-item.html
@@ -4,7 +4,9 @@
{{ end }}
<div class="page-item-content">
<header>
- <time class="page-item-date">{{ .Date.Format "Mon Jan 06, 2006" }}</time>
+ {{ if not .Date.IsZero }}
+ <time class="page-item-date">{{ .Date.Format "Mon Jan 06, 2006" }}</time>
+ {{ end }}
<h2 class="page-item-title">{{ .Title }}</h2>
</header>
<p class="page-item-summary">{{ .Summary }}</p>