My hunch is that you are using Leaf Bundles when you really want to be using Branch Bundles. In other words, rename index.md
to _index.md
.
But as @maiki mentioned, you’ll need to share some code to confirm this.
Also see this thread: Can't figure out the very basics of content structure ↔︎ generated
And the hugo docs on page bundles: https://gohugo.io/content-management/page-bundles/