Hales fixes my RSS

Internet

Last week I wrote about Hugo 0.58 breaking pagination on some of the sites I maintain, including this one. Long-time contributor Hales of Halestrom fame was the first to spot my RSS feeds were also broken:

Three empty articles, two of which born on January 1st. Your feed doesn’t normally look like this :)

This is the Hugo loop in my rss.xml template:

{{ range first 10 .Data.Pages }}

The documentation now says this, which works:

{{ range .Pages }}

Hugo does a great job of generating high-quality RSS feeds by default without any manual work, but I like to create my own for some custom namespaces and better podcast support.

Author bio and support

Me!

Ruben Schade is a technical writer and infrastructure architect in Sydney, Australia who refers to himself in the third person. Hi!

The site is powered by Hugo, FreeBSD, and OpenZFS on OrionVM, everyone’s favourite bespoke cloud infrastructure provider.

If you found this post helpful or entertaining, you can shout me a coffee or send a comment. Thanks ☺️.