Use description, title vars to verify RSS item

master
Will Faught 2 years ago
parent 3b27a30755
commit bf270078c2

@ -137,7 +137,7 @@
<title>{{ . }}</title> <title>{{ . }}</title>
{{ end }} {{ 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 }} {{ warnf "layouts/_default/rss.xml: Page %s does not have a title or description" .RelPermalink }}
{{ end }} {{ end }}
</item> </item>

Loading…
Cancel
Save