|
@ -20,14 +20,15 @@ |
|
|
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} |
|
|
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}} |
|
|
<guid>{{ .Permalink }}</guid> |
|
|
<guid>{{ .Permalink }}</guid> |
|
|
<description>{{ .Content | plainify }} |
|
|
<description>{{ .Content | plainify }} |
|
|
({{ .Permalink }})</description> |
|
|
|
|
|
|
|
|
({{ .Permalink }}) |
|
|
{{ range .Params.Photo }} |
|
|
{{ range .Params.Photo }} |
|
|
{{ if not ( in . "http" ) }} |
|
|
{{ 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" /> |
|
|
|
|
|
|
|
|
<media:content xmlns:media="http://search.yahoo.com/mrss" url="https://jk.nipponalba.scot{{.}}" medium="image" type="image/jpeg"/> |
|
|
{{ else }} |
|
|
{{ else }} |
|
|
{{ $image_location := replace (printf "%s" .) "https://jk.nipponalba.scot/" "static/"}}{{$image := readFile $image_location }}{{$len := len $image}}<enclosure url="{{.}}" length="{{$len}}" type="image/jpeg" /> |
|
|
|
|
|
|
|
|
<media:content xmlns:media="http://search.yahoo.com/mrss" url="{{.}}" medium="image" type="image/jpeg"/> |
|
|
{{ end }} |
|
|
{{ end }} |
|
|
{{ end }} |
|
|
{{ end }} |
|
|
|
|
|
</description> |
|
|
</item> |
|
|
</item> |
|
|
{{ end }} |
|
|
{{ end }} |
|
|
</channel> |
|
|
</channel> |
|
|