I really hope this isn’t asked and answered already, but I haven’t found it yet.
What I want to do is to have section and subsection specific RSS feeds. However, it appears that regardless of what I put in separate rss.xml files layouts for the different sections and subsections, they all inherit and use /layouts/rss.xml.
Is there a way to override this and actually get a section and subsection specific RSS feed?
To clarify, the reason I need to do this is because I have the following layout:
content
|–blog
| |-----iOS
| |-----mac
|–podcasts
| |-----dnia
| |-----psp
I want my RSS feed for blog to have all entries for itself AND /blog/ios and /blog/mac. Also I want my RSS feed for /podcasts to have all entries for /podcasts/dnia and podcasts/psp if I choose.
I also have an RSS feed template in /layouts/rss.xml to appear in the site root which uses the following query:
{{ range where .Site.RegularPages “Type” “blog” }}
This lets me have a sitename/feed.xml which all blog posts in it, which I want. But consequently, all my section and subsection RSS feeds seem to inherit this, regardless of what I put in /layouts/blog/rss.xml and /layouts/blog/ios/rss.xml and /layouts/blog/mac/rss.xml, etc etc.
I want my /layouts/blog/rss.xml file to also use the same query as /layouts/rss.xml, ie
{{ range where .Site.RegularPages “Type” “blog” }}
But I want the subsection ones in /layouts/blog/ios and /layouts/blog/mac to have use
{{ range .RegularPages }} or {{ range .RegularPages “Type” “ios” }} or whatever.
Obviously I don’t want those subsections to inherit the /layouts/rss.xml and therefore show all posts from every /blog subsection.
I have looked at both the custom output and the template lookup order docs, and I’m still hitting this issue.
Thank you.