mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-26 05:32:58 +00:00
add images to rss
This commit is contained in:
1 parent
c24296fe11
commit
14bf1b68a7
1 file changed
+2
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user