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 IaaS engineer in Sydney, Australia who refers to himself in the third person in bios. Wait, not BIOS… my brain should be EFI by now.

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

You can leave me a comment by contacting me, and I might publish your thoughts. Please read the FAQs first though.

If you found this post helpful or entertaining, you can shout me a coffee or buy some silly merch. Thanks!