mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-02-02 03:22:33 -06:00
Merge pull request #107 from nunocoracao/105-add-featured-images-to-rss-feeds
add images to rss
This commit is contained in:
commit
eea1e72d81
1 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue