|
|
@ -24,9 +24,9 @@ |
|
|
|
({{ .Permalink }})</description> |
|
|
|
{{ range .Params.Photo }} |
|
|
|
{{ if not ( in . "http" ) }} |
|
|
|
{{ $image_location := printf "static/%s" .}}{{$image := readFile $image_location }}{{$len := len $image}}<enclosure url="https://jk.nipponalba.scot/{{.}}" length="{{$len}}" type="image/jpeg" /> |
|
|
|
{{ $image_location := printf "static/%s" .}}{{$image := readFile $image_location }}{{$len := len $image}}<enclosure url="https://jk.nipponalba.scot{{.}}" length="{{$len}}" type="image/jpeg" /> |
|
|
|
{{ else }} |
|
|
|
{{ $image_location := replace (printf "%s" .) "https://jk.nipponalba.scot/" "static/"}}{{$image := readFile $image_location }}{{$len := len $image}}<enclosure url="https://jk.nipponalba.scot{{.}}" length="{{$len}}" type="image/jpeg" /> |
|
|
|
{{ $image_location := replace (printf "%s" .) "https://jk.nipponalba.scot/" "static/"}}{{$image := readFile $image_location }}{{$len := len $image}}<enclosure url="{{.}}" length="{{$len}}" type="image/jpeg" /> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
</item> |
|
|
|