Add cover images to RSS
This commit is contained in:
parent
2f51d21ee4
commit
64fc914be3
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
|||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{ cond (isset .Params "description") .Params.description (.Summary | html) }}</description>
|
||||
{{ with .Resources.GetMatch "{cover.*,*.jpg,*.png,*.jpeg}" }}<enclosure url="{{ .Permalink }}" type="{{ .MediaType }}" />{{ end }}
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
|
|
Loading…
Add table
Reference in a new issue