diff options
author | Dennis Eriksen <d@ennis.no> | 2019-11-02 17:18:19 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2019-11-02 17:18:19 +0100 |
commit | d74f235ffa18ae804533bf78650dee0c3f1dc5a9 (patch) | |
tree | 4ab174e2e26ab98aefa5e41cae3586edad56dc68 | |
parent | allowing html in copyright-notice (diff) | |
download | rikerz-d74f235ffa18ae804533bf78650dee0c3f1dc5a9.tar.gz |
lets add modifies-date
-rw-r--r-- | layouts/_default/single.html | 1 |
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> |