Warn if no title, description in RSS

This commit is contained in:
Will Faught
2023-09-22 21:50:32 -07:00
parent 7eeabd5e04
commit 45eaf4421e

View File

@@ -75,6 +75,9 @@
{{ with .Title }}
<title>{{ . | markdownify | plainify | htmlUnescape | safeHTML }}</title>
{{ end }}
{{ if and (not .Description) (not .Title) }}
{{ warnf "layouts/_default/rss.xml: Page %s does not have a title or description" .RelPermalink }}
{{ end }}
</item>
{{ end }}
</channel>