From f52991466a86a32ebaa3ba8dd1f3cc77ea609b0a6aed370470242bfffa1d8cdf Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 24 Feb 2023 00:00:00 +0000 Subject: Add tag list to metadata partial --- layouts/partials/pageinfo.html | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 layouts/partials/pageinfo.html (limited to 'layouts/partials/pageinfo.html') diff --git a/layouts/partials/pageinfo.html b/layouts/partials/pageinfo.html new file mode 100644 index 0000000..c6643dc --- /dev/null +++ b/layouts/partials/pageinfo.html @@ -0,0 +1,2 @@ +{{ $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" -}} +{{ emojify ":calendar:" }} {{ .Page.PublishDate.Format $dateFormat | safeHTML }} | {{ emojify ":stopwatch:" }} {{ .Page.ReadingTime | safeHTML }} minute read{{ if .Page.Params.Tags }} | {{ emojify ":label:" }} {{ end }}{{ range $key, $val := .Page.Params.Tags }}{{ if $key }}, {{ end }}{{ $val }}{{ end }} -- cgit v1.2.3