From ac22d416b49e8bb61934a81d69d2186c2d41f8ce Mon Sep 17 00:00:00 2001 From: jon Date: Fri, 1 Apr 2022 09:46:10 +0100 Subject: [PATCH] fix banner for rss feeds --- layouts/_default/rss.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 4d87ac6..358240b 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -24,6 +24,15 @@ {{ .Content | plainify }} ({{ .Permalink }}) + {{ if eq .Params.posttype "article" }} + {{ if not ( in .Params.image "http" ) }} + + {{.Params.imagealt}} + {{ else }} + + {{.Params.imagealt}} + {{ end }} + {{ end }} {{ range .Page.Params.Photo }} {{ if isset . "value" }} {{ if not ( in . "http" ) }} @@ -51,6 +60,16 @@ {{ .Content | plainify }} ({{ .Permalink }}) + {{ if eq .Params.posttype "article" }} + {{ $image := delimit .Params.image " " | safeHTML }} + {{ if not ( in $image "https" ) }} + + {{.Params.imagealt}} + {{ else }} + + {{.Params.imagealt}} + {{ end }} + {{ end }} {{ range .Page.Params.Photo }} {{ if isset . "value" }} {{ if not ( in . "http" ) }}