Hey there. Love Hugo but seem to have hit a bit a of a snag.
My issue is that when building for development (hugo -e development), even when deploying that development, it renders fine. Here’s an example site: https://0e86ccd0.urbanism-guide.pages.dev/
If I manually remove the .s it all renders fine as expected. Below are my configs. I shortened them just to what I thought might be relevant but my full repository is linked below.
The full project repository is on github under zeezephyr/urbanism-guide. I can’t add a third link as a new account.
main is the source branch that builds the production branch. The production branch is exactly as hugo outputs it except I made a small commit to disallow robots as I don’t want the site to be indexed just yet.
Lastly I also swear I’ve tried every combination of baseURL and relativeURLs plus every solution I could find on google plus trying some newer versions of hugo. Not sure what to do to resolve this. Thanks for any help in advance!
I removed relativeURLs and set all baseURLs to fully qualified paths of where the sites are live and still have the same ultimate issue with rendering for the production build only (staging renders fine). The difference now is that file references aren’t prefixed with “.” but fixing that has oddly had no effect on the site rendering.
The workflow file in the documentation is based on the “Hugo starter action” published by the GitHub Pages team, and I have never had a problem with it.
As an experiment, you might try changing both of your GitHub Pages workflows to match the documentation.