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" ) }}