# RSS for Single postings? (single.xml?)

**URL:** <https://discourse.gohugo.io/t/rss-for-single-postings-single-xml/19491>\
**Category:** support\
**Created:** [July 6, 2019, 12:03am UTC](https://discourse.gohugo.io/t/rss-for-single-postings-single-xml/19491 "2019-07-06T00:03:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![EwS](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ews/32/9056_2.png) [@EwS](https://discourse.gohugo.io/u/EwS)\
**Post date:** [July 6, 2019, 12:03am UTC](https://discourse.gohugo.io/t/rss-for-single-postings-single-xml/19491/1 "2019-07-06T00:03:48Z")

</div>

Most of my blog’s individual postings are collections of individual items such as pictures: /trips/iceland.html will show a collection of my Iceland Trip pictures

Does anybody know if it would be possible to have an RSS feed for every individual posting (/trips/iceland.xml, not trips/rss.xml)? I have been playing with renaming it to single.xml and playing with the [outputformats] and [mediaType] fields on the config files with zero success so far.

Is something like this even possible with hugo?

---

<div class="post-metadata">

**Author:** ![frjo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/frjo/32/18626_2.png) [@frjo](https://discourse.gohugo.io/u/frjo)\
**Post date:** [July 6, 2019, 5:15am UTC](https://discourse.gohugo.io/t/rss-for-single-postings-single-xml/19491/2 "2019-07-06T05:15:13Z")

</div>

Creating a `layouts/_default/single.xml` template might work. But what is the point of having a feed with a single post? Who would subscribe to it?

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [July 6, 2019, 5:36am UTC](https://discourse.gohugo.io/t/rss-for-single-postings-single-xml/19491/3 "2019-07-06T05:36:56Z")

</div>

You need to tell Hugo, that it should create RSS for these sections. Probably like this:

```auto
[outputs]
trip = ["HTML", "RSS"]

```

The default is HTML only for pages I believe, so you have to tell it.

> **[Custom Output Formats](https://gohugo.io/templates/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.

---

<div class="post-metadata">

**Author:** ![EwS](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ews/32/9056_2.png) [@EwS](https://discourse.gohugo.io/u/EwS)\
**Post date:** [July 6, 2019, 6:40am UTC](https://discourse.gohugo.io/t/rss-for-single-postings-single-xml/19491/4 "2019-07-06T06:40:57Z")

</div>

> [@frjo](#):
>
> `layouts/_default/single.xml`

I tried this, it didn’t work, although it _should_

About subscribing, at this point it’s just for me to keep track of the content on an RSS reader.

---

<div class="post-metadata">

**Author:** ![EwS](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ews/32/9056_2.png) [@EwS](https://discourse.gohugo.io/u/EwS)\
**Post date:** [July 6, 2019, 6:47am UTC](https://discourse.gohugo.io/t/rss-for-single-postings-single-xml/19491/5 "2019-07-06T06:47:02Z")

</div>

I tried this, but still only renders trips/index.xml , not trips/\*/index.xml

it looks like [outputs] can only go one level in, not two levels to single posts. I am not sure if this is by design.

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [July 6, 2019, 6:53am UTC](https://discourse.gohugo.io/t/rss-for-single-postings-single-xml/19491/6 "2019-07-06T06:53:40Z")

</div>

all these pages are of kind `page`. Try `page` instead of `trip`. It might create more than you like.

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

---

<div class="post-metadata">

**Author:** ![EwS](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ews/32/9056_2.png) [@EwS](https://discourse.gohugo.io/u/EwS)\
**Post date:** [July 6, 2019, 6:55am UTC](https://discourse.gohugo.io/t/rss-for-single-postings-single-xml/19491/7 "2019-07-06T06:55:33Z")

</div>

That totally worked and it was so simple, thanks so much @davidsneighbour !

---

<div class="post-metadata">

**Author:** ![EwS](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ews/32/9056_2.png) [@EwS](https://discourse.gohugo.io/u/EwS)\
**Post date:** [July 6, 2019, 8:00am UTC](https://discourse.gohugo.io/t/rss-for-single-postings-single-xml/19491/8 "2019-07-06T08:00:51Z")

</div>

Something else, I can’t quite mark this as [solved] as I (potentially) found a kink here.

@davidsneighbour 's solution works _although_ it only seem to display the default RSS, it completely ignores \_default/single.rss.xml (and /trips/single.rss.xml and so on).

I have tried with several combinations and I can’t seem to be able to make hugo read my own RSS template, it only displays the default one.

Did I just find a bug or does anybody know if I am missing anything here?
