add itunes prefix/namespace

This commit is contained in:
Gabriel 2024-08-21 12:04:26 -04:00
parent 550ebe31fb
commit c5d2842eb5
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
{{- printf "<?xml-stylesheet href=\"/feed.xsl\" type=\"text/xsl\"?>" | safeHTML }} {{- printf "<?xml-stylesheet href=\"/feed.xsl\" type=\"text/xsl\"?>" | safeHTML }}
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:podcast="https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md"> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:podcast="https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<channel> <channel>
<title>{{.Title}}</title> <title>{{.Title}}</title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>

View file

@ -1,5 +1,5 @@
{{- printf "<?xml-stylesheet href=\"/feed.xsl\" type=\"text/xsl\"?>" | safeHTML }} {{- printf "<?xml-stylesheet href=\"/feed.xsl\" type=\"text/xsl\"?>" | safeHTML }}
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:podcast="https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md"> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:podcast="https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<channel> <channel>
<title>{{.Title}}</title> <title>{{.Title}}</title>
<link>{{ .Permalink }}</link> <link>{{ .Permalink }}</link>
@ -27,7 +27,7 @@
<enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" /> <enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" />
{{end}} {{end}}
{{end}}{{ if .Params.image}} {{end}}{{ if .Params.image}}
<image>{{.Params.image}}</image> <image>{{.Site.BaseURL}}{{.Params.image}}</image>
<media:thumbnail href="{{.Site.BaseURL}}{{.Params.image}}" /> <media:thumbnail href="{{.Site.BaseURL}}{{.Params.image}}" />
<itunes:image href="{{.Site.BaseURL}}{{.Params.image}}" />{{end}} <itunes:image href="{{.Site.BaseURL}}{{.Params.image}}" />{{end}}
<description>{{.Site.BaseURL}}{{.Params.description}}</description> <description>{{.Site.BaseURL}}{{.Params.description}}</description>