hugo-material-docs icon indicating copy to clipboard operation
hugo-material-docs copied to clipboard

Hiding nested menu

Open timsutton opened this issue 8 years ago • 1 comments

Hello, thanks for this great theme!

I've got one section with a nested menu, which will probably have at least several dozen entries, each managed by individual files.

I'm wondering if there's a simple way for these nested entries to be hidden when the current page isn't within this section. In other words, having a behaviour similar to how sections aren't expanded with their <h2> sections until you're actually browsing that page.

Because I'd want to have so many of these nested entries, if they're always visible in the nav menu they would end up taking over the entire space.

If there's some other way I could achieve a similar result I'm all ears! Thanks again.

timsutton avatar Jul 20 '17 14:07 timsutton

If you are successfully using nested menu entries, will you look at issue #70 and let us know how you're achieving this? (Then maybe we can all think about the issue of hiding them when appropriate!)

Thanks!

tblom avatar Jul 22 '17 04:07 tblom