Just got back to your post after looking at View Page Source on the hugo server version and seeing example.com/… all over the place.
Perfect timing. Am now seeing properly rendered site locally and from other computers on the network. So when moving to a hosted service, this will be a critical setting. Not sure if all themes will work this way.
You can use multiple configuration files for direct hugo server (on your own computer), developement (on your local network apache) or production (on your hosted service). Have a look at this doc: Configure Hugo | Hugo
Thanks @nfriedli that page is starting to make more sense now. It’s a classic loop of learn-do-fail-learn… Still not sure if ‘hugo server’ has the capability to be used as a local server for the home network, but apache2 is probably a more realistic option as it may be used in a live situation…
There is perhaps a better solution, just for you: use only relative URLs.
As your website is on your Apache’s root, you can use | relURL filter instead of | absURL filter in your theme. And add a relativeURLs : true in your configuration file. You have to modify the theme.
So you can use exactly the same website with your local hugo server, your Apache and the production website (if the production website is on the root).
So, if “grep -ri absURL” is used in the theme folder, it returns about 15 finds, so making your suggested change would mean the baseURL value wasn’t used at all.
Using the correct baseurl was my conclusion too! There’s a difference between learning how something works and making a change just because it can be made. As a beginner, it doesn’t feel right to change a theme directly.
My strategy, in the absence of knowing how to choose a theme, is to try out a number of themes in order to learn about how Hugo works (add to that: learn about a lot of other topics, including git, networks, etc).