Full content RSS in Hugo

By default, Hugo only displays a summary of the post.

<description>{{ .Summary | html }}</description>

To enable a full text RSS feed for a section of my site, I added a layouts/section/section.rss.xml template file according to Hugo’s layout lookup order . Fill it with the default RSS layout template .

Modified the description part and add RSS content :

<description>{{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}</description>
<content:encoded>{{ (printf "<![CDATA[%s]]>" .Content) | safeHTML }}</content:encoded>

Verify the change by going to https://localhost:1313/<section>/index.xml.