Skip to content

Commit

Permalink
Issue kakawait#106: Add showDate param
Browse files Browse the repository at this point in the history
Setting showDate to false in a page front matter prevents the date from being displayed
  • Loading branch information
ebouchut committed Jan 14, 2017
1 parent 4f959e7 commit e8b3539
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions layouts/partials/post/meta.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<div class="postShorten-meta post-meta">
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{ partial "internal/date.html" . }}
</time>
{{ if not (eq .Params.showDate false) }}
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{ partial "internal/date.html" . }}
</time>
{{ end }}
{{ partial "post/category.html" . }}
</div>

0 comments on commit e8b3539

Please sign in to comment.