added images to rss feed fix

This commit is contained in:
Nuno Coração 2022-10-15 15:07:11 +01:00
parent 14bf1b68a7
commit 9e1de94dab

View file

@ -38,8 +38,7 @@
{{- $featured := $images.GetMatch "*feature*" -}}
{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}}
{{- with $featured -}}
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="{{ $featured.Permalink }}" />
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="{{ $featured.Permalink }}" />
{{- end -}}
{{ end }}
</item>