From 005e9fca71408da1a2b53bde1ff7b1718b9db479 Mon Sep 17 00:00:00 2001 From: Adam Ormsby Date: Tue, 26 May 2020 18:38:15 -0500 Subject: [PATCH] better printf style --- layouts/_default/rss.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 }}