Lastmod is autopopulated from Date if not set.

This commit is contained in:
Fredrik Jonsson 2017-09-01 15:28:44 +02:00
commit 1b0cead11a

View file

@ -13,7 +13,7 @@
<div class="content">
{{ .Content }}
{{ if not .Lastmod.IsZero }}{{ partial "dates.html" . }}{{ end -}}
{{ if ne .Lastmod .Date }}{{ partial "dates.html" . }}{{ end -}}
</div>
</article>
</main>