Why .Permalink for homepage outputs rss xml file?

Hi. I need some rss customization. And if I put this rss code in my config file, home page permalink stops working. Instead of href=https://mypage.com/ it outputs href=https://mypage.com/rss.xml

[outputs]
home = [ "RSS", "HTML"]

[outputFormats]
[outputFormats.RSS]
mediatype = "application/rss+xml"
baseName = "rss"

What would be a good solution for this. Do you think its a problem on my side or is it a bug in hugo?
Thanks

The order of Output Formats matters.

Reverse what you have and then .Permalink will output HTML.
i.e. home = [ "HTML", "RSS" ]

1 Like