layouts: surpress date section when date is not set
ci/woodpecker/push/woodpecker Pipeline was successful Details

main
Ariadne Conill 2022-08-06 07:01:02 +00:00
parent 2ccaa8cbf9
commit 83b1af5361
1 changed files with 2 additions and 0 deletions

View File

@ -4,11 +4,13 @@
<div class="e-content">
{{ .Content }}
</div>
{{ if .Date }}
<p>
Published on
<a class="u-url" href="{{ .Permalink }}">
<time class="dt-published" datetime="{{ .Date }}">{{ .Date.Format "Jan 2, 2006" }}</time>
</a>
</p>
{{ end }}
</article>
{{ end }}