support podcasting 2.0 funding

This commit is contained in:
Gabriel 2024-01-19 21:13:35 -05:00
parent d3649ef300
commit b151428f0f

View file

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