diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 696cf60..83dd3d3 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -42,13 +42,13 @@ {{ .Permalink }} {{ if .Params.Cover }} - {{ if .Params.UseRelativeCover }}{{ printf "%s%s%s%s" ""}} - {{ else }}{{ printf "%s%s%s" ""}} + {{ if .Params.UseRelativeCover }}{{ printf "" .Permalink .Params.Cover }} + {{ else }}{{ printf "" (.Params.Cover | absURL) }} {{ end }} {{ else }} {{ $images := .Resources.ByType "image" }} {{ $featured := $images.GetMatch "{*featured*,*cover*,*thumbnail*}" }} - {{ with $featured }}{{ printf "%s%s%s" ""}}{{ end }} + {{ with $featured }}{{ printf "" $featured.Permalink }}{{ end }} {{ end }} {{ if .Site.Params.RssFullText }}{{ .Content | html }}