add encoded content to the podcast feed

This commit is contained in:
Greg Gauthier 2022-01-04 19:53:11 +00:00
parent 5656cf1743
commit ae938394ae

View File

@ -39,13 +39,22 @@
{{ end }}
{{ end }}
<description>
{{`<![CDATA[ ` | safeHTML }}
{{ if isset .Params "image" }}<p><img src="{{ .Site.Params.podcastCdnURL }}{{ with .Params.image }}{{.}}{{ end }}" width="600" height="338" /></p>{{end}}
{{ .Summary | safeHTML }}
]]>
</description>
<content:encoded>
{{`<![CDATA[ ` | safeHTML }}
{{ if isset .Params "image" }}
{{ $cdnUrl := .Site.Params.podcastCdnUrl }}
<p><img src="{{ $cdnUrl }}{{ with .Params.image }}{{.}}{{ end }}"/></p>
{{end}}
{{ .Content | safeHTML }}
]]>
</content:encoded>
</item>
{{ end }}
</channel>