From 732725688e818d22901d80067d8af7cb0be0408a Mon Sep 17 00:00:00 2001 From: Amolith Date: Thu, 1 Jun 2023 00:25:31 -0400 Subject: [PATCH] add categories to feed --- themes/secluded/layouts/_default/rss.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/themes/secluded/layouts/_default/rss.xml b/themes/secluded/layouts/_default/rss.xml index a163352..46d65c4 100644 --- a/themes/secluded/layouts/_default/rss.xml +++ b/themes/secluded/layouts/_default/rss.xml @@ -28,8 +28,15 @@ {{ .Title }} {{ .Permalink }} + {{- if .Params.Tags }} + {{ range $key, $value := .Params.Tags }}{{ if $key }}/{{ end }}{{ $value }}{{ end }}> + {{- else }} + {{- if .Params.Rss_only }} + RSS-only> + {{- end }} + {{- end }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{- with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | html }}