I maintain a theme that overrides the built-in RSS template for a section to enable podcasting. With the release of 0.146.x, it appears the theme’s RSS template isn’t being used.
{{ print "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | safeHTML }}
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0" xmlns:podcast="https://podcastindex.org/namespace/1.0"
>
<channel>
<title>{{ site.Params.Podcast.title | transform.XMLEscape | safeHTML }}</title>
<link>{{ site.BaseURL }}</link>
<atom:link href="{{ site.BaseURL }}sermons/index.xml" rel="self" type="application/rss+xml" />
<language>{{ site.LanguageCode }}</language>
<lastBuildDate>{{ dateFormat "Mon, 2 Jan 2006 15:04:05 -0700" .Date }}</lastBuildDate>
<copyright>{{ site.Params.Podcast.copyright | plainify }}</copyright>
<itunes:author>{{ site.Params.Author.name | transform.XMLEscape | safeHTML }}</itunes:author>
<itunes:summary>{{ site.Params.Podcast.summary | plainify }}</itunes:summary>
<description>{{ site.Params.Podcast.summary |plainify }}</description>
<itunes:owner>
<itunes:name>{{ site.Params.Author.name | transform.XMLEscape | safeHTML }}</itunes:name>
<itunes:email>{{ site.Params.Author.email }}</itunes:email>
</itunes:owner>
<itunes:image href="{{site.BaseURL}}{{ site.Params.Podcast.image }}" />
<itunes:category text="{{ site.Params.Podcast.category }}">
This file has been truncated. show original
(This works in <=0.145.0)
I know the docs haven’t been updated yet but I’ve looked at the issue noted in the release notes . I’ve tried a bunch of alternative paths and filenames but have not been able to work out what structure will give the desired result.
1 Like
layouts/
├── sermons/
│ └── list.rss.xml
├── baseof.html
├── home.html
├── list.html
└── single.html
1 Like
Thanks @jmooring . I think in my testing I may have tried that option but forgot that the XML files aren’t rebuilt until you stop and restart the server.
1 Like
system
Closed
April 16, 2025, 6:59am
4
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.