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

View File

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