From 6b5951e6a646ce120b8832a997404d8d1d25601b Mon Sep 17 00:00:00 2001 From: echtnurich Date: Wed, 13 Dec 2023 17:55:16 +0000 Subject: [PATCH 1/7] Update file rss.xml --- themes/ccchh/layouts/_default/rss.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/ccchh/layouts/_default/rss.xml b/themes/ccchh/layouts/_default/rss.xml index 0c9217b..e51aa4b 100644 --- a/themes/ccchh/layouts/_default/rss.xml +++ b/themes/ccchh/layouts/_default/rss.xml @@ -61,6 +61,7 @@ {{ .Title }} {{ .Permalink }} + {{ .Author }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} From 94cbc7ddf43f16e79775739e0b79c533b5ac9479 Mon Sep 17 00:00:00 2001 From: echtnurich Date: Wed, 13 Dec 2023 18:02:07 +0000 Subject: [PATCH 2/7] use Author as it is used in the blog-header --- themes/ccchh/layouts/_default/rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/ccchh/layouts/_default/rss.xml b/themes/ccchh/layouts/_default/rss.xml index e51aa4b..e60a932 100644 --- a/themes/ccchh/layouts/_default/rss.xml +++ b/themes/ccchh/layouts/_default/rss.xml @@ -61,7 +61,7 @@ {{ .Title }} {{ .Permalink }} - {{ .Author }} + {{ .GetTerms "authors" }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} From 4a868f8e2de0b66f1b989db638b89c9f79e15567 Mon Sep 17 00:00:00 2001 From: echtnurich Date: Wed, 13 Dec 2023 18:18:43 +0000 Subject: [PATCH 3/7] unpack authors into comma separated list --- themes/ccchh/layouts/_default/rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/ccchh/layouts/_default/rss.xml b/themes/ccchh/layouts/_default/rss.xml index e60a932..b746bf6 100644 --- a/themes/ccchh/layouts/_default/rss.xml +++ b/themes/ccchh/layouts/_default/rss.xml @@ -61,7 +61,7 @@ {{ .Title }} {{ .Permalink }} - {{ .GetTerms "authors" }} + {{ .GetTerms "authors" | delimit ", " }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} From 593b019dc2091867e7da1ba9e9ea29d294c420f8 Mon Sep 17 00:00:00 2001 From: echtnurich Date: Wed, 13 Dec 2023 18:30:00 +0000 Subject: [PATCH 4/7] use with-end syntax --- themes/ccchh/layouts/_default/rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/ccchh/layouts/_default/rss.xml b/themes/ccchh/layouts/_default/rss.xml index b746bf6..7aee80c 100644 --- a/themes/ccchh/layouts/_default/rss.xml +++ b/themes/ccchh/layouts/_default/rss.xml @@ -61,7 +61,7 @@ {{ .Title }} {{ .Permalink }} - {{ .GetTerms "authors" | delimit ", " }} + {{ with .GetTerms "authors" }} {{ delimit . ", " }} {{- end }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} From 15b83719050247173d91010a51c773032fb79e1b Mon Sep 17 00:00:00 2001 From: echtnurich Date: Wed, 13 Dec 2023 18:33:19 +0000 Subject: [PATCH 5/7] Update file rss.xml --- themes/ccchh/layouts/_default/rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/ccchh/layouts/_default/rss.xml b/themes/ccchh/layouts/_default/rss.xml index 7aee80c..0d23303 100644 --- a/themes/ccchh/layouts/_default/rss.xml +++ b/themes/ccchh/layouts/_default/rss.xml @@ -61,7 +61,7 @@ {{ .Title }} {{ .Permalink }} - {{ with .GetTerms "authors" }} {{ delimit . ", " }} {{- end }} + {{ with .GetTerms "authors" }} {{ delimit .Title ", " }} {{- end }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} {{ .Permalink }} From 64282d8fa5868fb0a8ddfac530b6848d43e88f3a Mon Sep 17 00:00:00 2001 From: echtnurich Date: Wed, 13 Dec 2023 19:06:08 +0000 Subject: [PATCH 6/7] 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 }} From 72ae6166f1b7a42c041404d9add0083e371666b2 Mon Sep 17 00:00:00 2001 From: echtnurich Date: Wed, 13 Dec 2023 19:08:09 +0000 Subject: [PATCH 7/7] maybe remove extra space between tag and author list? --- themes/ccchh/layouts/_default/rss.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/ccchh/layouts/_default/rss.xml b/themes/ccchh/layouts/_default/rss.xml index a9864a1..ab5da0f 100644 --- a/themes/ccchh/layouts/_default/rss.xml +++ b/themes/ccchh/layouts/_default/rss.xml @@ -61,9 +61,9 @@ {{ .Title }} {{ .Permalink }} - {{ with .GetTerms "authors" -}} - {{- range $i, $pageAuthor := . -}} - {{- if $i -}}, {{ end }} + {{ with .GetTerms "authors" -}} + {{- range $i, $pageAuthor := . -}} + {{- if $i -}}, {{- end -}} {{ .Title }} {{- end -}} {{- end }}