diff options
author | breadcat | 2020-06-28 12:16:17 +0100 |
---|---|---|
committer | breadcat | 2020-06-28 12:16:17 +0100 |
commit | f747f3d4faba5a0e1f274801f767decc858dfacd (patch) | |
tree | fd4ccae6b19d5f47e903a2394feb08478289ff89 /themes/Brine/layouts/_default/single.html | |
parent | c8a4cea74daa8d25b6c79f2d94eca21a724bfcf7 (diff) | |
download | blog.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/Brine/layouts/_default/single.html')
-rw-r--r-- | themes/Brine/layouts/_default/single.html | 2 |
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> {{- end -}}{{- end -}}</div>{{- end -}} {{ .Content }}{{ end }} |