fixed hero images in xml feed

This commit is contained in:
Greg Gauthier 2021-11-26 22:49:07 +00:00
parent 9a6005a84a
commit 9aff17e6a8
1 changed files with 5 additions and 6 deletions

View File

@ -32,12 +32,11 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description> &lt;![CDATA[
<p>
{{ if isset .Params "image" }}<img src="https://gmgauthier.com{{ with .Params.image }}{{.}}{{ end }}"/>{{end}}
{{.Summary | html }}
</p>
]]&gt;
<description>
{{`<![CDATA[ ` | safeHTML }}
{{ if isset .Params "image" }}<p><img src="https://gmgauthier.com{{ with .Params.image }}{{.}}{{ end }}"/></p>{{end}}
{{ .Summary | safeHTML }}
]]>
</description>
</item>
{{ end }}