# How to disable RSS outputs everywhere except for one page?

**URL:** <https://discourse.gohugo.io/t/how-to-disable-rss-outputs-everywhere-except-for-one-page/39708>\
**Category:** support\
**Created:** [July 26, 2022, 8:50pm UTC](https://discourse.gohugo.io/t/how-to-disable-rss-outputs-everywhere-except-for-one-page/39708 "2022-07-26T20:50:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![realpixelcode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/realpixelcode/32/17189_2.png) [@realpixelcode](https://discourse.gohugo.io/u/realpixelcode)\
**Post date:** [July 26, 2022, 8:50pm UTC](https://discourse.gohugo.io/t/how-to-disable-rss-outputs-everywhere-except-for-one-page/39708/1 "2022-07-26T20:50:06Z")

</div>

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:

```auto
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`:

```auto
---
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!

---

<div class="post-metadata">

**Author:** ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)\
**Post date:** [July 27, 2022, 8:26am UTC](https://discourse.gohugo.io/t/how-to-disable-rss-outputs-everywhere-except-for-one-page/39708/2 "2022-07-27T08:26:57Z")

</div>

1st

> **[Configure Hugo](https://gohugo.io/getting-started/configuration/#disablekinds)**
>
> How to configure your Hugo site.

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](https://github.com/gj52/HugoSample).

PM in German works too 😉

---

<div class="post-metadata">

**Author:** ![realpixelcode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/realpixelcode/32/17189_2.png) [@realpixelcode](https://discourse.gohugo.io/u/realpixelcode)\
**Post date:** [July 27, 2022, 1:32pm UTC](https://discourse.gohugo.io/t/how-to-disable-rss-outputs-everywhere-except-for-one-page/39708/3 "2022-07-27T13:32:01Z")

</div>

Thank you! This solution works for me now! Here’s my current setup:

`aenderungen.feed.xml` as the feed template.

`config.yaml`:

```auto
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`:

```auto
outputs:
  - HTML
  - feed

```

---

<div class="post-metadata">

**Author:** ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)\
**Post date:** [July 27, 2022, 4:13pm UTC](https://discourse.gohugo.io/t/how-to-disable-rss-outputs-everywhere-except-for-one-page/39708/4 "2022-07-27T16:13:20Z")

</div>

outputs uses only the default kinds

> **[Custom Output Formats](https://gohugo.io/templates/output-formats#default-output-formats)**
>
> Hugo can output content in multiple formats, including calendar events, e-book formats, Google AMP, and JSON search indexes, or any custom text format.

but you found the solution 🙂

---

<div class="post-metadata">

**Author:** ![realpixelcode](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/realpixelcode/32/17189_2.png) [@realpixelcode](https://discourse.gohugo.io/u/realpixelcode)\
**Post date:** [July 27, 2022, 4:18pm UTC](https://discourse.gohugo.io/t/how-to-disable-rss-outputs-everywhere-except-for-one-page/39708/5 "2022-07-27T16:18:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [July 31, 2022, 3:08pm UTC](https://discourse.gohugo.io/t/how-to-disable-rss-outputs-everywhere-except-for-one-page/39708/7 "2022-07-31T15:08:36Z")

</div>

Closed on July 31, 2022, 3:08pm UTC

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