From c66cc8d7b61bc63a7ed58aac73c2aefb27628f0a Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 11 Jun 2020 16:58:53 +0100 Subject: [PATCH] trying to make some RSS amendments --- layouts/_default/rss.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index e0012d0e..37a0ecc3 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -24,9 +24,9 @@ ({{ .Permalink }}) {{ range .Params.Photo }} {{ if not ( in . "http" ) }} - {{ $image_location := printf "static/%s" .}}{{$image := readFile $image_location }}{{$len := len $image}} + {{ $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}} + {{ $image_location := replace (printf "%s" .) "https://jk.nipponalba.scot/" "static/"}}{{$image := readFile $image_location }}{{$len := len $image}} {{ end }} {{ end }}