@codydh I have been toying around with custom outputs and figured out a way to create a
feed.xml for the homepage. I’ll delimit the steps here—I need to improve the documentation as well—but this should provide enough insight to get you going on doing the same for your individual sections, etc. Keep in mind this is my first time using this features, so YMMV:
In your site’s
config.toml, place the following:
home = ["HTML","FEED"]
suffix = "xml"
mediatype = "application/rss"
baseName = "feed"
Notice how you define that the
home specifically outputs
HTML (default behavior) as well as
FEED. You need to declare these explicitly, and although they are all uppercase, output formats are case insensitive.
You can then create your layout for the homepage RSS feed at
layouts/index.feed.xml. When your site builds, it will output whatever templating you put inside of this layout at
codydhsite.com/feed.xml. For your use case,
section is also a
Kind, so you could create a similar layout/template at
layouts/_default/section.feed.xml and then set the
section kind accordingly in your site’s configuration file…
I’m looking to @bep to confirm if I’m on the right track since this is what I’ve figure out for potential improvements to the docs in this area.