|
|
@ -22,6 +22,13 @@ |
|
|
|
<description>{{ .Content | html }} |
|
|
|
{{ range .Page.Params.Photo }}{{ printf "<img src=%q />" . | html }}{{end}} |
|
|
|
({{ .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" /> |
|
|
|
{{ 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" /> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
</item> |
|
|
|
{{ end }} |
|
|
|
</channel> |
|
|
|