Full-text RSS feed


What is the best way to create a full-text RSS feed for a HUGO site?
Is there an option/param for that or do we need to write a new template to include anything extra in there beyond whats generated by default?

I see that there is s starter template here: https://gohugo.io/templates/rss/#the-embedded-rss-xml


You just answered your own question, or at least provided the way to figure it out:

The link you provided displays the default RSS template that Hugo uses. If there are any site parameters checked to choose between .Summary and .Content, set the value of that parameter. Otherwise, you’ll have to adapt the template for your own needs.


Here is what I did —

I created a template in /layouts/rss.xml based off of the one provided in the Hugo docs: https://gohugo.io/templates/rss/#the-embedded-rss-xml

In that template, I added <content:encoded> below the

<description>{{ .Summary | safeHTML }}</description>
<content:encoded>{{ .Content | safeHTML }}</content:encoded>

I also added safeHTML to description (not in the docs)

Now I am trying to get the content to render without getting caught up on a the encoded special chars in posts
trying <content:encoded><![CDATA[{{ .Content | safeHTML }}]]></content:encoded>


Saw this after my other reply :slight_smile: