From 687215a3fb385883df4ea4ef74def709219709e1 Mon Sep 17 00:00:00 2001 From: breadcat Date: Fri, 26 Feb 2021 00:14:31 +0000 Subject: Comma separate those tags --- themes/Brine/layouts/_default/single.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'themes/Brine/layouts') diff --git a/themes/Brine/layouts/_default/single.html b/themes/Brine/layouts/_default/single.html index eb13967..63bd58b 100644 --- a/themes/Brine/layouts/_default/single.html +++ b/themes/Brine/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "main" }}

{{ .Title }}

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