update rss template to work with external audio
This commit is contained in:
parent
f2a2c1f4f9
commit
c2ce99a9ca
1 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,11 @@
|
|||
{{end}}{{ if .Params.video}}
|
||||
<enclosure url="{{.Params.video}}" />
|
||||
{{end}}{{ if .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…
Reference in a new issue