Only display date on single page if it is set
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<article class="post {{ if ne .Params.dropcap false }}dropcase{{ end }}">
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ .Title }}</h1>
|
||||
<p class="post-date">Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>
|
||||
{{ if isset .Params "date" }}<p class="post-date">Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>{{ end }}
|
||||
</header>
|
||||
{{ with .Resources.GetMatch "featuredImage" }}
|
||||
<picture class="post-figure">
|
||||
|
||||
Reference in New Issue
Block a user