mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 05:36:07 +01:00
Add enclosures
This commit is contained in:
parent
7a53d95a7e
commit
bf8c6f496a
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@
|
|||
{{- range .Params.syndications}}
|
||||
<dc:relation>{{ . }}</dc:relation>
|
||||
{{- end }}
|
||||
{{- range $i, $src := .Params.Media }}
|
||||
{{ $res := $page.Resources.Get $src }}
|
||||
<enclosure url="{{ $res.Permalink }}" length="{{ $res.Content | len }}" type="{{ $res.MediaType.Type}}" />
|
||||
{{- end }}
|
||||
</item>
|
||||
{{ end }}
|
||||
</channel>
|
||||
|
|
Loading…
Reference in a new issue