summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2019-11-02 17:18:19 +0100
committerDennis Eriksen <d@ennis.no>2019-11-02 17:18:19 +0100
commitd74f235ffa18ae804533bf78650dee0c3f1dc5a9 (patch)
tree4ab174e2e26ab98aefa5e41cae3586edad56dc68
parentallowing html in copyright-notice (diff)
downloadrikerz-d74f235ffa18ae804533bf78650dee0c3f1dc5a9.tar.gz
lets add modifies-date
-rw-r--r--layouts/_default/single.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 37bc22c..4d07a02 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -3,6 +3,7 @@
<article>
<h1>{{ .Title }}</h1>
<span class="single-date">{{ .Date.Format "January 2, 2006" }}</span>
+{{ if ne (.Lastmod.Format "January 2, 2006") (.Date.Format "January 2, 2006") }} <br><span class="single-date"><small>Last modified {{ .Lastmod.Format "January 2, 2006" }}</small></span>{{ end }}
{{ .Content }}
</article>