Why is my new content not being found - error 404 online but works in dev

Hello,

I’m trying to publish some new content under a certain path.

I’ve got it working locally but after publishing it to my domain, I’m getting a 404 error.

My path is content/de/about/stack

I’ve added _index.md in my about/stack folder, it works locally with hugo server -D but after I do my ./deploy I’m getting a 404 online.

Here is my repo in case this helps.
git clone git@bitbucket.org:webdev-hq/tobias-hopp.de.git

Why is that and how can I fix it?

Thanks in advance.

Rename content/de/about/index.md to content/de/about/_index.md.

Read up on Page bundles at:

1 Like

Thank you for pointing me in the right direction.

What threw me off, was the fact that it worked locally, but not online. Thanks again.

Hugo create pages in parallel, one reason it is so fast. You can therefore end up in a race condition, different results depending on what is built first.

1 Like

That’s a nice hint to keep in mind for the future.
Thanks again for the support. :slight_smile:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.