From 45eaf4421ec6bc8c54faa90faa826ce55d63fe75 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Fri, 22 Sep 2023 21:50:32 -0700 Subject: [PATCH] Warn if no title, description in RSS --- layouts/_default/rss.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 165a539e..510842cd 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -75,6 +75,9 @@ {{ with .Title }} {{ . | markdownify | plainify | htmlUnescape | safeHTML }} {{ end }} + {{ if and (not .Description) (not .Title) }} + {{ warnf "layouts/_default/rss.xml: Page %s does not have a title or description" .RelPermalink }} + {{ end }} {{ end }}