Github Pages - blog section missing, but research section not?

I do not have the slightest idea why this is happening. When I serve the site locally everything works. I upload the site, it deploys fine. Home page works. But when I navigate to /blog, I get a 404. The blog folder is there in the build, and on the github, and it has an index.html. I do not know why it’s not there.

Then I add a research section and it just works??? What is going on

I know it’s something stupid. I have missed something simple. Could someone please tell me what it is

It is a little unclear because you just linked to the repo instead of a specific commit that isolates the problem. For example, the head of main right now doesn’t even include content/blog at all (so that’s obviously not it), but then in your prior commits there have been a lot of changes: I think at one point you uploaded the public directory and at another point you were using gh actions deploy script? So it’s a little hard to help debug without more information.

Very useful would be a specific commit that demonstrates the problem and a testable build (link) of that commit that shows the same commit not resolving to the URL that is expected.

That being said if it works locally but isn’t working in GitHub then it is almost certainly an issue with the build/serving of your website and unrelated to zola.

Yeah my bad. I just kept working on the problem without updating this post. I deleted the blog/ section entirely and replaced it with an identical posts/ section, and it worked, so I imagine it’s some esoteric Github Pages problem. I’m not interested in working on it more unless it breaks, so I will close this thread for now.

1 Like