mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-10 02:26:08 +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}}
|
{{- range .Params.syndications}}
|
||||||
<dc:relation>{{ . }}</dc:relation>
|
<dc:relation>{{ . }}</dc:relation>
|
||||||
{{- end }}
|
{{- 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>
|
</item>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</channel>
|
</channel>
|
||||||
|
|
Loading…
Reference in a new issue