small fixes

This commit is contained in:
teldra 2022-04-03 21:54:54 +02:00
parent 408cabab0f
commit e1a31f5046

View File

@ -37,11 +37,13 @@
<guid>{{ .Permalink }}</guid>
<description>
{{ $img := index (.Resources.ByType "image") 0 }}
{{ printf "\<![CDATA\[" | safeHTML }}
{{ with $img }}
{{ $img := .Resize "640x" }}
{{ printf "<![CDATA[<img src=\"%s\" width=\"%d\" height=\"%d\"/>]]>" $img.Permalink $img.Width $img.Height | safeHTML }}
{{ printf "<img src=\"%s\" width=\"%d\" height=\"%d\"/>]]>" $img.Permalink $img.Width $img.Height | safeHTML }}
{{ end }}
{{ .Summary | html }}
{{ .Content | html }}
{{ printf "]]>" $img.Permalink $img.Width $img.Height | safeHTML }}
</description>
</item>