diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index b5488a33..9825b7fe 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -20,14 +20,15 @@ {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | plainify }} - ({{ .Permalink }}) + ({{ .Permalink }}) {{ range .Params.Photo }} {{ if not ( in . "http" ) }} - {{ $image_location := printf "static/%s" .}}{{$image := readFile $image_location }}{{$len := len $image}} + {{ else }} - {{ $image_location := replace (printf "%s" .) "https://jk.nipponalba.scot/" "static/"}}{{$image := readFile $image_location }}{{$len := len $image}} + {{ end }} {{ end }} + {{ end }}