Use description, title vars to verify RSS item
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user