update rss template to work with external audio

This commit is contained in:
Gabriel 2024-02-25 20:56:02 -05:00
parent f2a2c1f4f9
commit c2ce99a9ca

View file

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