Separate feeds for each section

Hello there,
I’d like to know if there is a way to generate atom/rss feeds for each sections. Right now Zola is generating one feed for all sections of my site at the root URL of my site, i.e. www.yaroslavps.com/feed.xml. I’ve got two sections in my site - “weblog” and “food” - I’d like to know if there is a way to generate separate feeds for each of them in each of the section’s root URL, i.e. /weblog/feed.xml and /food/feed.xml

Is it currently possible to do this in Zola, and if so, how do I do it?

I think currently there is no builtin support but can be achieved with some workaround.

For example you can use taxonomy feeds and mark articles with dummy taxonomy.

It would be tedious to do that for all pages, so being able to recursively set metadata in sections would be helpful, but it is not available yet.

Personally I would like to have per section feed and feed template support, so for example the title can be customized.

Right now feeds are either global and/or per taxonomy. I would take a PR for feeds per section but it needs some thoughts: does it include only the direct pages or also the sub-sections pages?

I have been thinking about it for the last couple of days, and I thought that a possible solution would be to provide a “generate_feed” or “generate_subfeed” variable in the front matter of the section/subsection’s _index.md file, and if that variable is true, then generate an atom/rss feed for that section/subsection.

Another idea, coupled with that first idea, is to maybe add a “exclude_from_root_feed” variable to the _index.md of sections so that you can exclude the feed from the root/global feed and/or any parent section’s feeds.

I am not yet very versed in Rust, but I am willing to contribute to this feature. After all, it would also help me put my knowledge of Rust to practice :slight_smile: