-
Notifications
You must be signed in to change notification settings - Fork 228
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
Multilevel Menu #42
Comments
Has anyone worked on this? I'm curious about this myself and am still pretty new to Hugo or else I would have just done it myself. Anyone have any tips for getting this started? |
@CFaught I can work on it, or you can feel free. Checkout the Nav Partial, and see how it relates to the config file, then check out the css. If you know how to make a basic css dropdown, it shouldn't take long to make. |
Thanks, I'll take a look. Are children denoted as .Site.Menus.main.children in the config file? |
I got something working, the only issue I have at the moment is that every child after the first submenu item has a padding-left of 1em that I can't seem to override. Alas, CSS is not my strong point. |
My website's tutorial section is a live example of how it looks. |
@CFaught, it's actually a margin. |
That's what it was, I was trying to set it as none. 0 works. |
@CFaught I think, the menus look great on your website. I found the related entries with the 'parent'-options in your config.toml. What else do I have to adjust to get multilevel-menus enabled for my site? |
@henningsway, if you clone this fork it should only require setting |
I noticed that identifiers is used to add an icon in the nav, so is there a way to have a drop down in the menu? I don't notice one so a request could be for this - something like parent and child.
The text was updated successfully, but these errors were encountered: