support podcasting 2.0 funding

main
Gabriel 4 months ago
parent d3649ef300
commit b151428f0f

@ -1,4 +1,4 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:podcast="https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md">
<channel>
<title>{{.Title}}</title>
<link>{{ .Permalink }}</link>
@ -8,7 +8,8 @@
<image>
<url>{{.Site.BaseURL}}{{.Site.Params.default_img}}</url>
</image>
<atom:link href="{{.Site.BaseURL}}/index.xml" rel="self" type="application/rss+xml" />{{ range .Site.RegularPages }}
<atom:link href="{{.Site.BaseURL}}/index.xml" rel="self" type="application/rss+xml" />{{ range .Site.RegularPages }}{{if .Site.Params.funding}}
<podcast:funding url="{{.Site.Params.funding}}">Support this work!</podcast:funding>{{end}}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>

Loading…
Cancel
Save