forked from Bunteshaus/bunteshaus.de
small fixes
This commit is contained in:
parent
e1a31f5046
commit
7b3ae2faad
|
@ -37,13 +37,11 @@
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>
|
<description>
|
||||||
{{ $img := index (.Resources.ByType "image") 0 }}
|
{{ $img := index (.Resources.ByType "image") 0 }}
|
||||||
{{ printf "\<![CDATA\[" | safeHTML }}
|
|
||||||
{{ with $img }}
|
{{ with $img }}
|
||||||
{{ $img := .Resize "640x" }}
|
{{ $img := .Resize "640x" }}
|
||||||
{{ printf "<img src=\"%s\" width=\"%d\" height=\"%d\"/>]]>" $img.Permalink $img.Width $img.Height | safeHTML }}
|
{{ printf "<![CDATA[<img src=\"%s\" width=\"%d\" height=\"%d\"/>]]>" $img.Permalink $img.Width $img.Height | safeHTML }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .Content | html }}
|
{{ printf "<![CDATA[%s]]>" .Content | safeHTML }}
|
||||||
{{ printf "]]>" $img.Permalink $img.Width $img.Height | safeHTML }}
|
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user