Skip to content

Commit 3091c75

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

layouts/blog/rss.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@
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-
<description>{{ .Content | html }}</description>
16+
<description>
17+
{{ if .Params.meta_image }}
18+
&lt;img src=&quot;{{ .Site.Params.canonicalURL }}{{ .RelPermalink }}{{ .Params.meta_image }}&quot; /&gt;
19+
{{ end }}
20+
{{ .Content | html }}
21+
</description>
1722
{{ range $id := .Params.authors }}
1823
{{ $author := index $.Site.Data.team.team $id }}
1924
{{ if $author }}

0 commit comments

Comments
 (0)