Custom RSS feeds don't apply since 0.146

In my theme at GitHub - mattstratton/castanet: A podcast-oriented theme for Hugo

I have in the layouts directory, the following structure:

│   ├── section
│   │   ├── blog.html
│   │   ├── blog.rss.xml
│   │   └── episode.rss.xml

The episode.rss.xml should generate the feed for posts in the episode directory, the blog.rss.xml does the same for the blog section.

Since 0.146, it’s no longer using these templates to create the feeds; they seem to be the default feeds? Is this a function of the new template lookup perhaps?

Yes. See New template system in Hugo v0.146.0

For your setup there maybe several options, but I would probably go for something ala:

layouts
├── blog
│   ├── section.html
│   └── section.rss.xml
└── episode
    └── section.rss.xml

We (I) should have done a better job handling the backward compability of the /layouts/section case, but I do believe that breaking some eggs to get to a better place was needed.

3 Likes

excellent; i’ll give this a try!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.