|
|
@ -24,6 +24,15 @@ |
|
|
|
{{ .Content | plainify }} |
|
|
|
({{ .Permalink }}) |
|
|
|
</description> |
|
|
|
{{ if eq .Params.posttype "article" }} |
|
|
|
{{ if not ( in .Params.image "http" ) }} |
|
|
|
<media:content xmlns:media="http://search.yahoo.com/mrss" url="https://jon.kelbie.scot{{.Params.image}}" medium="image" type="image/jpeg"/> |
|
|
|
<media:description xmlns:media="http://search.yahoo.com/mrss">{{.Params.imagealt}}</media:description> |
|
|
|
{{ else }} |
|
|
|
<media:content xmlns:media="http://search.yahoo.com/mrss" url="{{.Params.image}}" medium="image" type="image/jpeg"/> |
|
|
|
<media:description xmlns:media="http://search.yahoo.com/mrss">{{.Params.imagealt}}</media:description> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
{{ range .Page.Params.Photo }} |
|
|
|
{{ if isset . "value" }} |
|
|
|
{{ if not ( in . "http" ) }} |
|
|
@ -51,6 +60,16 @@ |
|
|
|
{{ .Content | plainify }} |
|
|
|
({{ .Permalink }}) |
|
|
|
</description> |
|
|
|
{{ if eq .Params.posttype "article" }} |
|
|
|
{{ $image := delimit .Params.image " " | safeHTML }} |
|
|
|
{{ if not ( in $image "https" ) }} |
|
|
|
<media:content xmlns:media="http://search.yahoo.com/mrss" url="https://jon.kelbie.scot{{$image}}" medium="image" type="image/jpeg"/> |
|
|
|
<media:description xmlns:media="http://search.yahoo.com/mrss">{{.Params.imagealt}}</media:description> |
|
|
|
{{ else }} |
|
|
|
<media:content xmlns:media="http://search.yahoo.com/mrss" url="{{$image}}" medium="image" type="image/jpeg"/> |
|
|
|
<media:description xmlns:media="http://search.yahoo.com/mrss">{{.Params.imagealt}}</media:description> |
|
|
|
{{ end }} |
|
|
|
{{ end }} |
|
|
|
{{ range .Page.Params.Photo }} |
|
|
|
{{ if isset . "value" }} |
|
|
|
{{ if not ( in . "http" ) }} |
|
|
|