I am trying to correctly visualize my portfolio on Github pages after deploy with no success and I am running out of ideas for what the problem might be.
Problem:
- The live page either shows " This site is open source. [Improve this page]" if my index.html is inside of “layouts” folder (as it is originally in the theme) or it shows the raw index.html file - if I place index.html in the root.
Facts:
- I am able to run the website without any problem locally, and it renders the expected result.
- I have followed the suggestions of having “/” as baseURL.
- I have tried placing the index.html file in the root directory (seems the logic structure to adopt)
- Inspecting the index page, I get no errors on the console whatsoever when index.html is placed in the root and shows live (as raw html).
- I get no deployment errors (I follow the builds in Github’s deployment log).
- I am able to access css, js and images folder publicly and see the content with the live url.
I am new to Hugo and I have no idea what I can do more, any help would be much appreciated! My repository is: https://github.com/anaritagomes/anaritagomes.github.io
I am using Hugo's "UILite" theme: https://themes.gohugo.io/hugo-uilite/
hugoto create thepublicdirectory) and then publish that directory to e.g. yourgh-pagesbranch (which you could do either manually or automate via GitHub Actions). if you do that, it seems to work just fine. - larsks