FlowFX

Full text RSS feed in Hugo

Since migrating this site to ox-hugo in 2024 its RSS feed only showed a summary of the blog posts — because that’s Hugo’s default. I very much dislike such truncated feeds and yesterday, finally, I have updated the template for RSS feeds to include the whole post content.

Of course I’m not the only one with this problem. The information on, for example https://blog.amen6.com/blog/2024/03/hugo-enabling-full-text-rss-feed/ is a bit outdated, though.

The default rss.xml is now located at https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/rss.xml (Permalink), and it needs to be placed directly inside the /layouts directory.

The required change in the file is still the same (commit):

-     <description>{{ .Summary | transform.XMLEscape | safeHTML }}</description>
+     <description>{{ .Content | transform.XMLEscape | safeHTML }}</description>

Make sure you run a version of Hugo equal or greater than v0.146.0 both locally AND in your build CI. I was very confused for a while until I did.

Categories: #Tech Tags: #Hugo