Wrap all feed tags in conditions
This commit is contained in:
@@ -60,7 +60,9 @@
|
|||||||
<icon>{{ . }}</icon>
|
<icon>{{ . }}</icon>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<id>{{ $id }}</id>
|
{{ with $id }}
|
||||||
|
<id>{{ . }}</id>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ range $page.OutputFormats }}
|
{{ range $page.OutputFormats }}
|
||||||
{{ $rel := cond (eq .Rel "canonical") "self" .Rel }}
|
{{ $rel := cond (eq .Rel "canonical") "self" .Rel }}
|
||||||
@@ -86,9 +88,13 @@
|
|||||||
<subtitle type="html"><![CDATA[{{ . }}]]></subtitle>
|
<subtitle type="html"><![CDATA[{{ . }}]]></subtitle>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<title type="html"><![CDATA[{{ $title }}]]></title>
|
{{ with $title }}
|
||||||
|
<title type="html"><![CDATA[{{ . }}]]></title>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<updated>{{ $lastmod }}</updated>
|
{{ with $lastmod }}
|
||||||
|
<updated>{{ . }}</updated>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ range $subpages }}
|
{{ range $subpages }}
|
||||||
{{ $include := not (.Param "paige.exclude_feeds") }}
|
{{ $include := not (.Param "paige.exclude_feeds") }}
|
||||||
@@ -139,7 +145,9 @@
|
|||||||
<content type="html"><![CDATA[{{ . }}]]></content>
|
<content type="html"><![CDATA[{{ . }}]]></content>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<id>{{ $id }}</id>
|
{{ with $id }}
|
||||||
|
<id>{{ . }}</id>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ range .OutputFormats }}
|
{{ range .OutputFormats }}
|
||||||
{{ $rel := cond (eq .Rel "canonical") "self" .Rel }}
|
{{ $rel := cond (eq .Rel "canonical") "self" .Rel }}
|
||||||
@@ -171,7 +179,9 @@
|
|||||||
<title type="html"><![CDATA[{{ . }}]]></title>
|
<title type="html"><![CDATA[{{ . }}]]></title>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<updated>{{ $lastmod }}</updated>
|
{{ with $lastmod }}
|
||||||
|
<updated>{{ . }}</updated>
|
||||||
|
{{ end }}
|
||||||
</entry>
|
</entry>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -56,7 +56,9 @@
|
|||||||
<copyright>{{ . }}</copyright>
|
<copyright>{{ . }}</copyright>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<description>{{ $description }}</description>
|
{{ with $description }}
|
||||||
|
<description>{{ . }}</description>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ with $language }}
|
{{ with $language }}
|
||||||
<language>{{ . }}</language>
|
<language>{{ . }}</language>
|
||||||
@@ -66,13 +68,17 @@
|
|||||||
<lastBuildDate>{{ . }}</lastBuildDate>
|
<lastBuildDate>{{ . }}</lastBuildDate>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<link>{{ $link }}</link>
|
{{ with $link }}
|
||||||
|
<link>{{ . }}</link>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ with $editor }}
|
{{ with $editor }}
|
||||||
<managingEditor>{{ . }}</managingEditor>
|
<managingEditor>{{ . }}</managingEditor>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<title>{{ $title }}</title>
|
{{ with $title }}
|
||||||
|
<title>{{ . }}</title>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ with $master }}
|
{{ with $master }}
|
||||||
<webMaster>{{ . }}</webMaster>
|
<webMaster>{{ . }}</webMaster>
|
||||||
@@ -126,7 +132,9 @@
|
|||||||
<description><![CDATA[{{ . }}]]></description>
|
<description><![CDATA[{{ . }}]]></description>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<guid isPermaLink="false">{{ $guid }}</guid>
|
{{ with $guid }}
|
||||||
|
<guid isPermaLink="false">{{ . }}</guid>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ with $link }}
|
{{ with $link }}
|
||||||
<link>{{ . }}</link>
|
<link>{{ . }}</link>
|
||||||
|
Reference in New Issue
Block a user