I’m currently trying to set up an RSS feed for my website’s changelog in the section aenderungen – without creating any other RSS feeds anywhere in the project. I’ve already succeeded in disabling all feeds that I don’t want to have, except for the feed of the section regeln.
Here’s my current config:
outputs:
aenderungen:
- HTML
- RSS
taxonomy:
- HTML
term:
- HTML
terms:
- HTML
list:
- HTML
page:
- HTML
home:
- HTML
regeln:
- HTML
Here’s the front matter of regeln/_index.md:
---
title: Alle Regeln
layout: list
outputs:
- HTML
---
(I’ve got only those two sections.)
How do I disable the RSS feed for regeln? Is there maybe a more efficient way to disable all but one RSS feed?
Thank you! This solution works for me now! Here’s my current setup:
aenderungen.feed.xml as the feed template.
config.yaml:
outputs:
aenderungen:
- HTML
- feed
changelog:
- HTML
- feed
mediaTypes:
application/rss+xml:
suffixes: xml
outputFormats:
feed:
baseName: index
mediaType: application/rss+xml
isPlainText: false
isHTML: false
For some reason, the creation of the feed was neither triggered by the section name aenderungen nor by the layout name changelog, so I had to set the output format in the front matter of aenderungen/_index.md: