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:
authorChip Senkbeil <chip.senkbeil@gmail.com>2015-09-27 22:24:58 +0300
committerChip Senkbeil <chip.senkbeil@gmail.com>2015-09-27 22:24:58 +0300
commit57f4c87dad9bc852d1cc9d4789a702f92435171f (patch)
tree786db239677eff9fb4da8767ef8ff48801d48e4b
parent563ac18e28fb3475476ef006da6c17c4f45c14fe (diff)
Updated date to be optional for post
-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>