From 335c1014756c20672dec436800d68ac84808ffde Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 15 Jun 2022 21:52:38 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/_default/rss.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/buha/layouts/_default/rss.xml b/themes/buha/layouts/_default/rss.xml index d26ea28e..9036c368 100644 --- a/themes/buha/layouts/_default/rss.xml +++ b/themes/buha/layouts/_default/rss.xml @@ -89,8 +89,9 @@ {{- end -}} {{- range .Resources.ByType "image" -}} - {{- if not (hasPrefix . "banner") }} - {{- $c = printf "%s" $c .Permalink .Width .Height -}} + {{ $img := . }} + {{- if not (hasPrefix $img.Name "banner") }} + {{- $c = printf "%s" $c $img.Permalink $img.Width $img.Height -}} {{- end -}} {{- end -}}