diff options
author | Chip Senkbeil <chip.senkbeil@gmail.com> | 2015-09-27 22:24:58 +0300 |
---|---|---|
committer | Chip Senkbeil <chip.senkbeil@gmail.com> | 2015-09-27 22:24:58 +0300 |
commit | 57f4c87dad9bc852d1cc9d4789a702f92435171f (patch) | |
tree | 786db239677eff9fb4da8767ef8ff48801d48e4b | |
parent | 563ac18e28fb3475476ef006da6c17c4f45c14fe (diff) |
Updated date to be optional for post
-rw-r--r-- | layouts/partials/post/page-item.html | 4 |
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> |