RSS Feed No Longer Annoyingly Trunca...

October 26, 2021

Hugo’s default RSS feed template truncates RSS feeds by default. Long time readers probably know how I feel about that.

I copied the default Hugo RSS feed template and made the following changes:

  • Limited the feed to pages in the “Posts” section (Note: this may not work for your site).
  • Set the default post limit to 15 posts, because Hugo was trying to include all posts in the RSS feed.
  • Changed feed items to include complete post contents as HTML.

The updated template is available in this gist. You can use it on your site by copying it to layouts/_default/index.xml.