add images to rss

This commit is contained in:
Nuno Coração 2022-10-15 12:57:11 +01:00
parent c24296fe11
commit 14bf1b68a7

View file

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