rss: fix image embeds

This commit is contained in:
John Bowdre 2024-01-15 13:23:34 -06:00
parent 7497882d94
commit cec57e09d1

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>