Use description, title vars to verify RSS item

master
Will Faught 2 years ago
parent 3b27a30755
commit bf270078c2

@ -137,7 +137,7 @@
<title>{{ . }}</title>
{{ 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 }}
</item>

Loading…
Cancel
Save