Browse Source

trying to make some RSS amendments

master
jk 4 years ago
parent
commit
c66cc8d7b6
  1. 4
      layouts/_default/rss.xml

4
layouts/_default/rss.xml

@ -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>