Add updated date

This commit is contained in:
Philipp Oppermann
2016-04-30 13:31:21 +02:00
parent 87e21bf6e7
commit 4e0ce25794

View File

@@ -4,6 +4,9 @@
<h1 class="post-title">{{ .Title }}</h1>
<time datetime="{{ .Date.Format "2006-01-02" }}" class="post-date">
{{ .Date.Format .Site.Params.date_format }}
{{ if isset .Params "updated" }}
(updated on {{ .Params.updated | dateFormat .Site.Params.date_format }})
{{ end }}
</time>
{{ .Content }}