-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I avoid adding _index in the docs? #504
Comments
you don't necessarily need an
not sure that this is possible in Hugo, as it only generates an index page when there's
there are settings to expand an item in the sidebar: hextra/exampleSite/content/docs/guide/_index.md Lines 6 to 7 in 86a1f3f
|
Thanks, the issue with expanding the sidebar has been resolved. Regarding the _index.md issue, when there is no _index.md in a directory, the other articles in that directory are displayed flat on the frontend rather than being nested within the directory structure. I would prefer for them to maintain the same directory hierarchy as in the source files, without needing an index page. (Actually, I don't want to spend time writing or frequently adjusting index pages, which is why I brought up the idea of either removing the index page or automatically generating its content.I think this approach might help me (or others) focus more on the content itself.) |
It makes sense. I have a WIP #376 that generates the sidebar from a file, rather than inferring from the folder structure, which is not very flexible. |
Great theme, I started using it as soon as I saw it.
However, I don't really want each directory to have its own page; I only want to use _index to add a directory page when I need it.
Alternatively, this directory page could automatically generate an index instead of me manually adding each document.
Also, in the sidebar, clicking should directly expand the documents (or there could be a setting to make this directory default to being expanded).
Is this achievable?
The text was updated successfully, but these errors were encountered: