Add enclosures

This commit is contained in:
JP Hastings-Spital 2023-11-06 21:37:46 +00:00
parent 7a53d95a7e
commit bf8c6f496a

View file

@ -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>