Does anyone have any idea Hugo is using localhost:1313 as the host in all the links it generates despite me setting baseurl appropriately in my config.toml? How do I get it to use the correct URL or to just use relative paths?
hugo server it defaults to localhost:1313, ignoring the baseUrl in config.toml.
But you can start it with
hugo server --port=12345 --baseUrl=http://myhost.com/
And it should work.
Thanks. I deleted
public and just did
hugo and the URLs are correct now. Could have sworn I did it before but I guess I was being absentminded. Hugo could maybe do with a