update rss template to work with external audio

main
Gabriel 3 months ago
parent f2a2c1f4f9
commit c2ce99a9ca

@ -20,7 +20,11 @@
{{end}}{{ if .Params.video}}
<enclosure url="{{.Params.video}}" />
{{end}}{{ if .Params.audio}}
<enclosure url="{{.Params.audio}}" />
{{if in .Params.adio "https://"}}
<enclosure url="{{.Params.audio}}" />
{{else}}
<enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" />
{{end}}
{{end}}{{ if .Params.image}}
<image>{{.Params.image}}</image>{{end}}
<description>{{- .Content | html -}}</description>

Loading…
Cancel
Save