From bf270078c28837bb6b446735bd79600d5f40e9c9 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 23 Sep 2023 14:15:13 -0700 Subject: [PATCH] Use description, title vars to verify RSS item --- layouts/_default/rss.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 2ee5d3d4..970ebf03 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -137,7 +137,7 @@ {{ . }} {{ end }} - {{ if and (not .Description) (not .Title) }} + {{ if and (not $description) (not $title) }} {{ warnf "layouts/_default/rss.xml: Page %s does not have a title or description" .RelPermalink }} {{ end }}