diff --git a/themes/buha/layouts/_default/rss.xml b/themes/buha/layouts/_default/rss.xml index bd91308..1a8ad85 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 -}}