Skip to content

Commit 49077e5

Browse files
committed
Add thumbnails to rss feed
1 parent 60e925d commit 49077e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

layouts/blog/rss.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
1515
<guid>{{ .Site.Params.canonicalURL }}{{ .RelPermalink }}</guid>
1616
<description>{{ .Content | html }}</description>
17+
{{ if .Params.meta_image }}
18+
<media:thumbnail url="{{ .Site.Params.canonicalURL }}{{ .RelPermalink }}{{ .Params.meta_image }}" />
19+
{{ end }}
1720
{{ range $id := .Params.authors }}
1821
{{ $author := index $.Site.Data.team.team $id }}
1922
{{ if $author }}

0 commit comments

Comments
 (0)