# Full content in RSS feed

**URL:** <https://discourse.gohugo.io/t/full-content-in-rss-feed/22863>\
**Category:** support\
**Created:** [January 17, 2020, 2:24pm UTC](https://discourse.gohugo.io/t/full-content-in-rss-feed/22863 "2020-01-17T14:24:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntoineSoetewey](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/antoinesoetewey/32/10383_2.png) [@AntoineSoetewey](https://discourse.gohugo.io/u/AntoineSoetewey)\
**Post date:** [January 17, 2020, 2:24pm UTC](https://discourse.gohugo.io/t/full-content-in-rss-feed/22863/1 "2020-01-17T14:24:44Z")

</div>

Hello,

As you can see here: [https://simplepie.org/demo/?feed=https%3A%2F%2Fwww.statsandr.com%2Findex.xml](https://simplepie.org/demo/?feed=https%3A%2F%2Fwww.statsandr.com%2Findex.xml), the full content is displayed in the RSS feed.

However, I would like to also show the full content in this RSS feed: [https://simplepie.org/demo/?feed=https%3A%2F%2Fwww.statsandr.com%2Ftags%2Fr%2Findex.xml](https://simplepie.org/demo/?feed=https%3A%2F%2Fwww.statsandr.com%2Ftags%2Fr%2Findex.xml). For the moment, only a summary is displayed.

Any idea how to fix this issue?  
Thanks in advance.  
Best,  
Antoine

---

<div class="post-metadata">

**Author:** ![AntoineSoetewey](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/antoinesoetewey/32/10383_2.png) [@AntoineSoetewey](https://discourse.gohugo.io/u/AntoineSoetewey)\
**Post date:** [January 17, 2020, 2:29pm UTC](https://discourse.gohugo.io/t/full-content-in-rss-feed/22863/2 "2020-01-17T14:29:52Z")

</div>

Here is the file I edited to display all content for the general RSS feed: [https://github.com/AntoineSoetewey/statsandr/blob/master/layouts/rss.xml](https://github.com/AntoineSoetewey/statsandr/blob/master/layouts/rss.xml)

---

<div class="post-metadata">

**Author:** ![Nader\_K\_Rad](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nader_k_rad/32/7676_2.png) [@Nader\_K\_Rad](https://discourse.gohugo.io/u/Nader_K_Rad)\
**Post date:** [January 18, 2020, 2:06pm UTC](https://discourse.gohugo.io/t/full-content-in-rss-feed/22863/3 "2020-01-18T14:06:10Z")

</div>

This is a simplified version of the related part in my rss layout:

```auto
<description>
    {{ "<![CDATA[" | safeHTML }}
        {{ $content := .Content }}
        {{ $content = replace $content "href=\"/" "href=\"https://example.com/" }}
        {{ $content = replace $content "src=\"/" "src=\"https://example.com/" }}
        {{ $content | safeHTML }}
    {{ "]]>" | safeHTML }}
</description>

```

The two things I’ve had to do, besides replacing the summary with `{{ .Content }}` was to add `<![CDATA[...]]>` to escape the tags inside `<description>`, and the other was to replace relative urls in my website with absolute ones. There may be an easier way, but that what I came up with.

There are more adjustments in my actual code because some of my pages have iframes (for videos) and JavaScript, and I needed to remove those elements in the feed.

---

<div class="post-metadata">

**Author:** ![AntoineSoetewey](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/antoinesoetewey/32/10383_2.png) [@AntoineSoetewey](https://discourse.gohugo.io/u/AntoineSoetewey)\
**Post date:** [January 18, 2020, 2:32pm UTC](https://discourse.gohugo.io/t/full-content-in-rss-feed/22863/5 "2020-01-18T14:32:19Z")

</div>

Thanks !

I finally managed to find a solution by adding two folders: one for categories and one for tags and put the rss.xml file (with Content instead of Summary as you mentioned) inside those two folders. I also don’t know if there is a simple method, but it seems to work.

For those interested, you can have a look here: [https://github.com/AntoineSoetewey/statsandr/tree/master/layouts](https://github.com/AntoineSoetewey/statsandr/tree/master/layouts).
