The “nights” menu item goes to nights content when running locally, but I get a 404 error when using the menu when deployed on netlify.
I have tried modifying my baseURL, adding and subtracting content from my netlify.toml file, renaming the content and the content folders, and I slept on it. I have no idea at this time why it works locally and not on netlify. Another other guess is that my pluralized list titles might be causing a problem, but I would think that unlikely, or that there is a setting in netlify that needs to be set for my content.
It’s very weird for Hugo not being able to find the /content/ folder. Your config seems ok.
The only weird thing I noticed was the content of your .gitignore file. Beyond that maybe someone else can take a look.
Also regarding the /public/ folder if you type hugo the public folder will be generated in your repo along with the html of your site. It’s just an option so that your repo doesn’t get bloated.
Cloning my own repo into a new directory and running the site was something i didn’t try. That is a good test. When I do that it runs fine. Everything works as expected despite there being a bunch of missing folders. What version of hugo are you using? It might be a version issue which is why we are getting different results. I am running v0.37.1 linux/amd64 .
OK, I’ll find someone with a mac and see if I can get the same results. Might not be for a bit. Thank you for your help and the kind words on the tunes!
Ha! I got it. I had been running server as server -D this whole time, where netlify was not. I removed the draft variable from my header in nights and it fixed the problem.