The Hugo static site generator sadly still uses the obsolete and badly standardized RSS format.
Here's how to set it up to generate an Atom feed instead. Pretty much all feed readers which understand RSS also understand Atom, except iTunes, and Atom is a better format.
- Define an appropriate media type and corresponding output format in
config.toml
:
[mediaTypes]
[mediaTypes."application/atom"]
suffix = "xml"
[outputFormats.Atom]
mediaType = "application/atom"
baseName = "index"
isPlainText = false
- Tell Hugo to produce the home page in Atom and HTML formats, also in
config.toml
:
[outputs]
home = [ "HTML", "Atom" ]
- Put an
index.atom.xml
template file in yourlayouts
directory. You can use the attached one as a starting point, don't forget to edit the author element appropriately or make it take the values from your config.
The media-type stuff helped. Thanks!