Add date posted to single blog view

This commit is contained in:
Daniel Flanagan 2020-07-14 18:03:33 -05:00
parent 4923287bde
commit 985356ec64
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -3,6 +3,11 @@
{{ end }}
{{ define "main" }}
<p>
{{ with .Lastmod }}
Posted on {{ dateFormat "Jan 2 2006" . }}
{{ end }}
</p>
<h2>{{ .Title }}</h2>
{{ .Content }}
{{ end }}