Only display date on single page if it is set

This commit is contained in:
Joe Hutchinson
2019-07-19 14:22:50 -04:00
parent c5cf09978d
commit e4fbd4e123

View File

@@ -7,7 +7,7 @@
<article class="post {{ if ne .Params.dropcap false }}dropcase{{ end }}"> <article class="post {{ if ne .Params.dropcap false }}dropcase{{ end }}">
<header class="post-header"> <header class="post-header">
<h1 class="post-title">{{ .Title }}</h1> <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> </header>
{{ with .Resources.GetMatch "featuredImage" }} {{ with .Resources.GetMatch "featuredImage" }}
<picture class="post-figure"> <picture class="post-figure">