Add date posted to single blog view
This commit is contained in:
parent
4923287bde
commit
985356ec64
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,11 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<p>
|
||||
{{ with .Lastmod }}
|
||||
Posted on {{ dateFormat "Jan 2 2006" . }}
|
||||
{{ end }}
|
||||
</p>
|
||||
<h2>{{ .Title }}</h2>
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in a new issue