From 64282d8fa5868fb0a8ddfac530b6848d43e88f3a Mon Sep 17 00:00:00 2001 From: echtnurich Date: Wed, 13 Dec 2023 19:06:08 +0000 Subject: [PATCH] range and use index hack for commas --- themes/ccchh/layouts/_default/rss.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/themes/ccchh/layouts/_default/rss.xml b/themes/ccchh/layouts/_default/rss.xml index 0d23303..a9864a1 100644 --- a/themes/ccchh/layouts/_default/rss.xml +++ b/themes/ccchh/layouts/_default/rss.xml @@ -61,7 +61,12 @@ {{ .Title }} {{ .Permalink }} - {{ with .GetTerms "authors" }} {{ delimit .Title ", " }} {{- end }} + {{ with .GetTerms "authors" -}} + {{- range $i, $pageAuthor := . -}} + {{- if $i -}}, {{ end }} + {{ .Title }} + {{- end -}} + {{- end }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }}