mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 02:11:52 +02:00
Merge pull request #109 from nunocoracao/105-add-featured-images-to-rss-feeds
added images to rss feed fix
This commit is contained in:
commit
cbc55387a5
1 changed files with 1 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue