rss: fix image embeds

This commit is contained in:
John Bowdre 2024-01-15 13:23:34 -06:00
parent de75790647
commit c8f4a80c27

View file

@ -42,7 +42,7 @@
<category>{{ .LinkTitle }}</category>{{ end }} <category>{{ .LinkTitle }}</category>{{ end }}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description>{{ "<![CDATA[" | safeHTML }} {{ .Summary }}]]></description> <description>{{ "<![CDATA[" | safeHTML }} {{ .Summary }}]]></description>
<content:encoded>{{ "<![CDATA[" | safeHTML }} {{ .Content }}]]></content:encoded> <content:encoded>{{ "<![CDATA[" | safeHTML }} {{ replaceRE "img src=\"(.*?)\"" (printf "%s%s%s" "img src=\"" .Permalink "$1\"") .Content }}]]></content:encoded>
</item> </item>
{{ end }} {{ end }}
</channel> </channel>