How to disable RSS outputs everywhere except for one page?

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!

1st

I defined my own RSS feed output with a different kind name and added it to the needed section.

You must roll your own templates / output formats.

Pick what you need from my samles.

PM in German works too :wink:

1 Like

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:

outputs:
  - HTML
  - feed

outputs uses only the default kinds

but you found the solution :slight_smile:

1 Like

Oh, that makes sense, thanks! (Not sure how I came up with that in the first place though :sweat_smile:)

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