Today I Learned ...

Rss

... How Hugo Server Treats The BaseURL setting

I was just wondering why my RSS URLs don’t work in the deployed version of this site. All Feed Links were pointing to localhost:1313 instead of the baseURL set in my hugo.toml configuration file.

Turns out hugo server ignores the baseURL setting. The reason, I assume, is that hugo server is used as a dev server and you shouldn’t have to point your configuration to localhost while developing and then switching to the live URL when deploying.