From 3b27a3075598e88c49508bfb20cccec422f4847d Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 23 Sep 2023 14:14:34 -0700 Subject: [PATCH] Make RSS item description optional --- layouts/_default/rss.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index a65af260..2ee5d3d4 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -105,7 +105,9 @@ {{ $description = .Description | markdownify}} {{ end }} - {{ printf "" $description | safeHTML }} + {{ with $description }} + {{ printf "" . | safeHTML }} + {{ end }} {{ if .Params.id }} {{ $guid = .Params.id }}