Remove unneeded printfs from feed tags

master
Will Faught 5 months ago
parent bfffd2b4d6
commit 682b155d6f

@ -79,14 +79,14 @@
{{ end }} {{ end }}
{{ with $rights }} {{ with $rights }}
<rights type="html">{{ printf "<![CDATA[%s]]>" . | safeHTML }}</rights> <rights type="html"><![CDATA[{{ . }}]]></rights>
{{ end }} {{ end }}
{{ with $description }} {{ with $description }}
<subtitle type="html">{{ printf "<![CDATA[%s]]>" . | safeHTML }}</subtitle> <subtitle type="html"><![CDATA[{{ . }}]]></subtitle>
{{ end }} {{ end }}
{{ printf `<title type="html"><![CDATA[%s]]></title>` $title | safeHTML }} <title type="html"><![CDATA[{{ $title }}]]></title>
<updated>{{ $lastmod }}</updated> <updated>{{ $lastmod }}</updated>
@ -134,7 +134,7 @@
{{ end }} {{ end }}
{{ with $content }} {{ with $content }}
<content type="html">{{ printf "<![CDATA[%s]]>" . | safeHTML }}</content> <content type="html"><![CDATA[{{ . }}]]></content>
{{ end }} {{ end }}
<id>{{ $id }}</id> <id>{{ $id }}</id>
@ -158,14 +158,16 @@
{{ end }} {{ end }}
{{ with $rights }} {{ with $rights }}
<rights type="html">{{ printf "<![CDATA[%s]]>" . | safeHTML }}</rights> <rights type="html"><![CDATA[{{ . }}]]></rights>
{{ end }} {{ end }}
{{ with $summary }} {{ with $summary }}
<summary type="html">{{ printf "<![CDATA[%s]]>" . | safeHTML }}</summary> <summary type="html"><![CDATA[{{ . }}]]></summary>
{{ end }} {{ end }}
{{ printf `<title type="html"><![CDATA[%s]]></title>` $title | safeHTML }} {{ with $title }}
<title type="html"><![CDATA[{{ . }}]]></title>
{{ end }}
<updated>{{ $lastmod }}</updated> <updated>{{ $lastmod }}</updated>
</entry> </entry>

@ -121,7 +121,7 @@
{{ end }} {{ end }}
{{ with $description }} {{ with $description }}
<description>{{ printf "<![CDATA[%s]]>" . | safeHTML }}</description> <description><![CDATA[{{ . }}]]></description>
{{ end }} {{ end }}
<guid isPermaLink="false">{{ $guid }}</guid> <guid isPermaLink="false">{{ $guid }}</guid>

Loading…
Cancel
Save