I’ve migrated my Hugo blog/portfolio from Netlify to Github Pages, and am running into an issue with three select folders (under /content folder) returning 404 inaccessible when deployed via GitHub Pages.
Everything worked fine on Netlify and still does locally with hugo server (localhost:1313/).
However, GitHub just doesn’t like just these few pages. I even tried temporarily rigging an index.html to redirect to the old Netlify deploy (still functioning), but even then GitHub returns 404.
The folders/files in question are traditional HTML and Javascript (instead of Markdown), and I’m wondering if that has anything to do with it?
repository — https://github.com/NicholiNoah/NicholiNoah
page in question — https://nicholinoah.com/gift/ckeesee/sunset
still working on old Netlify deploy — https://main–jolly-brown-a2702d.netlify.app/gift/ckeesee/sunset
**note: the only reason I left Netlify was because this over-bandwidth charge that happened in February unfortunately scared me away.
What I’ve tried to fix: (ChatGPT helped me get this far, but I’m haven’t been able to wrestle a solution to the above issue.)
I followed the https://gohugo.io/hosting-and-deployment/hosting-on-github/ instructions to get Hugo working on GHPages. I expected the site to function as it did on Netlify and still does on localhost:1313, but select pages do not function as intended.
I also made sure the new github/workflows/hugo.yaml file indicates the exact same Hugo version as original netlify.toml file.
I’m getting a content-security-policy error in browser, but don’t know how to address that.