From 64fc914be3ca5012a7fd3a21af7d6dbd35e25b8f Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Fri, 17 Jun 2022 18:57:54 -0700 Subject: [PATCH] Add cover images to RSS --- layouts/_default/rss.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 47a819a..3e19e1f 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -33,6 +33,7 @@ {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ cond (isset .Params "description") .Params.description (.Summary | html) }} + {{ with .Resources.GetMatch "{cover.*,*.jpg,*.png,*.jpeg}" }}{{ end }} {{ end }}