summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
authorbreadcat2020-06-28 12:16:17 +0100
committerbreadcat2020-06-28 12:16:17 +0100
commitf747f3d4faba5a0e1f274801f767decc858dfacd (patch)
treefd4ccae6b19d5f47e903a2394feb08478289ff89 /themes
parentc8a4cea74daa8d25b6c79f2d94eca21a724bfcf7 (diff)
downloadblog.minskio.co.uk-f747f3d4faba5a0e1f274801f767decc858dfacd.tar.gz
blog.minskio.co.uk-f747f3d4faba5a0e1f274801f767decc858dfacd.tar.bz2
blog.minskio.co.uk-f747f3d4faba5a0e1f274801f767decc858dfacd.zip
Finally sussed last updated ifs and vars
Diffstat (limited to 'themes')
-rw-r--r--themes/Brine/layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/Brine/layouts/_default/single.html b/themes/Brine/layouts/_default/single.html
index dacdc89..9adb790 100644
--- a/themes/Brine/layouts/_default/single.html
+++ b/themes/Brine/layouts/_default/single.html
@@ -1,5 +1,5 @@
{{ define "main" }} <h1>{{ .Title }}</h1>
- <div>Published: {{ .PublishDate.Format "Jan 2, 2006" }}</div>
+ <div>Published: {{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }}, last updated: {{ .Lastmod.Format "Jan 2, 2006" }}{{ end }}</div>
<div>Reading time: {{ .ReadingTime }} min</div>{{- with .Params.tags -}}
<div>Tags: {{ range . -}}{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}<a href="{{ .Permalink }}">{{ .Title }}</a>&nbsp;{{- end -}}{{- end -}}</div>{{- end -}}
{{ .Content }}{{ end }}