Closed edwardgalligan closed 9 months ago
You cannot have both index.md and _index.md in the same directory. You would be telling Hugo, "Hey, this directory is a leaf bundle, and a branch bundle," and those two are mutually exclusive.
Please use the forum (https://discourse.gohugo.io/) for questions and troubleshooting. We prefer to use GitHub for verified bugs and vetted enhancements. Thanks.
You would be telling Hugo, "Hey, this directory is a leaf bundle, and a branch bundle," and those two are mutually exclusive.
I'm sorry if I've been unclear here; the intent is definitively to have a branch bundle and NOT a leaf bundle. The bug being reported here is that both files are required to make this work (whereas as you've pointed out index.md
is intended for leaf bundles only).
Please use the forum (https://discourse.gohugo.io/) for questions and troubleshooting. We prefer to
I haven't asked for any questions nor am I troubleshooting any problems: my setup functions fine with both files in place (branch bundle only). It's exhibiting a warning message that's already been documented in 2019 as a bug with Hugo (that ticket was closed by an automated bot, not by any maintainers for any stated reason).
both files are required to make this work
No, they are not.
Please create a topic on the forum to ask "How do I do xxx", and someone will be happy to help you. Thanks.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Issue
This issue was reported by someone else 5 years ago but was closed without a fix due to a "staleness" bot https://github.com/gohugoio/hugo/issues/6583
5 years later is still exhibits in the latest release, so I wanted to re-open to ask if there's a fix planned or if this is intended behaviour.
To be clear, I can get the desired behaviour by creating both an
index.md
and an empty dummy_index.md
but I see this warning:To be clear, the desired site structure here is to have:
(and similar structure for other sections on the site)