Skip to content
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

Is there any way to get nested folders in the sidebar? #495

Open
danielrosehill opened this issue Nov 7, 2024 · 2 comments
Open

Is there any way to get nested folders in the sidebar? #495

danielrosehill opened this issue Nov 7, 2024 · 2 comments

Comments

@danielrosehill
Copy link

Is there any way to get nested levels of folders in the sidebar?

Like to show

- Folder
- - Subfolders  
--- Doc 1  
--- Doc 2  

Ie, you click into folder which undocks subfolders which then undock the individual files.

@imfing
Copy link
Owner

imfing commented Nov 7, 2024

Thanks for reaching out!

I think you’re asking if you could expand child folders/files by clicking on the parent folders, without the parent folder itself being a page.

that is not supported currently. The sidebar entries are based on the Hugo file structure.

https://imfing.github.io/hextra/docs/guide/organize-files/#directory-structure

it might be possible once it supports reading sidebar structure from a different source than being auto generated.

@danielrosehill
Copy link
Author

@imfing Yup, indeed. Pity, but thanks for getting back to me (and thanks for the link and docs, they're excellent!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants