Skip to content

Commit d516e1f

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

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

layouts/blog/rss.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
2-
<rss version="2.0">
2+
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">
33
<channel>
44
<title>Pulumi Blog</title>
55
<link>{{ .Site.Params.canonicalURL }}{{ .RelPermalink }}</link>
@@ -13,6 +13,9 @@
1313
<link>{{ .Site.Params.canonicalURL }}{{ .RelPermalink }}</link>
1414
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
1515
<guid>{{ .Site.Params.canonicalURL }}{{ .RelPermalink }}</guid>
16+
{{ if .Params.meta_image }}
17+
<media:content url="{{ .Site.Params.canonicalURL }}{{ .RelPermalink }}{{ .Params.meta_image }}" />
18+
{{ end }}
1619
<description>{{ .Content | html }}</description>
1720
{{ range $id := .Params.authors }}
1821
{{ $author := index $.Site.Data.team.team $id }}

0 commit comments

Comments
 (0)