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

nested menus

Open wonslung opened this issue 8 years ago • 1 comments

is it possible to have more than one level of nested menus on the navigation bar? if so how do you do it?

I want something like:

Section | |______Sub Section | |_____________Sub Sub Section |______Sub Section 2

wonslung avatar Jul 05 '17 19:07 wonslung

I am having issues with this as well.

I have tried adding a new content file to the exampleSite under content/getting-started, for example (which previously only contained an index.md). In the front-matter for this new content file, I reference getting-started (defined in the config.toml) as the parent:

title: Thomas content (other)
menu:
  main:
    parent: "Getting started"

My menu item does show up nested under the Getting started menu item, is selectable, and the sub-sections (h2 tags) show up as expected. However, the original (parent) "Getting Started" menu item is now grayed out, and you cannot select it or see any of its contents or h2 entries:

screen shot 2017-07-21 at 11 26 08 pm

I've also tried adding an identifier = to the menu entry in config.toml and referencing that instead of the name "Getting started" with the same results.

tblom avatar Jul 22 '17 04:07 tblom