From 2642a29e26a94f5aa8295018a999702529568e20 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 30 Dec 2023 17:08:31 -0600 Subject: [PATCH] don't write empty categories to rss --- layouts/_default/rss.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index bc7027f..6a7f770 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -35,10 +35,10 @@ {{ .Title | plainify }} {{ .Permalink }} {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} - {{ with .Site.Params.Author.name }}{{.}}{{end}} - {{ .Params.series | lower }} + {{ with .Site.Params.Author.name }}{{.}}{{ end }} + {{ with .Params.series }}{{ . | lower }}{{ end }} {{ range (.GetTerms "tags") }} - {{ .LinkTitle }}{{end}} + {{ .LinkTitle }}{{ end }} {{ .Permalink }} {{ .Summary | plainify }}