Remove unneeded printfs from feed tags

This commit is contained in:
Will Faught
2025-02-14 16:14:21 -08:00
parent bfffd2b4d6
commit 682b155d6f
2 changed files with 10 additions and 8 deletions

View File

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