From 60962764ad1bfd8b996d4e53c17404ca498327dd Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 15 Jun 2022 21:59:25 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/_default/rss.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/themes/buha/layouts/_default/rss.xml b/themes/buha/layouts/_default/rss.xml index bd913088..1a8ad85c 100644 --- a/themes/buha/layouts/_default/rss.xml +++ b/themes/buha/layouts/_default/rss.xml @@ -79,19 +79,20 @@ {{- $c = printf "

%s

" .Summary -}} {{- end -}} {{- end -}} - - {{- if $when -}} - {{- $c = printf "

%s

%s" $when $c -}} - {{- end -}} + {{- $banner := .Resources.GetMatch "banner*" -}} {{- if $banner -}} {{- $c = printf "%s" $banner.Permalink $banner.Width $banner.Height $c -}} {{- end -}} + {{- if $when -}} + {{- $c = printf "

%s

%s" $when $c -}} + {{- end -}} + {{- range .Resources.ByType "image" -}} {{ $img := . }} {{- if not (hasPrefix $img.Name "banner") }} - {{- $c = printf "%s" $img.Permalink $img.Width $img.Height $c -}} + {{- $c = printf "%s" $c $img.Permalink $img.Width $img.Height -}} {{- end -}} {{- end -}}