diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 81aa8f6..0a3a38e 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -28,6 +28,15 @@ {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} + {{ if .Params.Cover }} + {{ if .Params.UseRelativeCover }}{{ printf "%s%s%s%s" ""}} + {{ else }}{{ printf "%s%s%s" ""}} + {{ end }} + {{ else }} + {{ $images := .Resources.ByType "image" }} + {{ $featured := $images.GetMatch "{*featured*,*cover*,*thumbnail*}" }} + {{ with $featured }}{{ printf "%s%s%s" ""}}{{ end }} + {{ end }} {{ .Summary | html }}