From f747f3d4faba5a0e1f274801f767decc858dfacd Mon Sep 17 00:00:00 2001 From: breadcat Date: Sun, 28 Jun 2020 12:16:17 +0100 Subject: Finally sussed last updated ifs and vars --- themes/Brine/layouts/_default/single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/Brine') 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" }}

{{ .Title }}

-
Published: {{ .PublishDate.Format "Jan 2, 2006" }}
+
Published: {{ .PublishDate.Format "Jan 2, 2006" }}{{ if ne .Lastmod .PublishDate }}, last updated: {{ .Lastmod.Format "Jan 2, 2006" }}{{ end }}
Reading time: {{ .ReadingTime }} min
{{- with .Params.tags -}}
Tags: {{ range . -}}{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}{{ .Title }} {{- end -}}{{- end -}}
{{- end -}} {{ .Content }}{{ end }} -- cgit v1.2.3