mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 03:14:51 -04:00
Update menu-templates.md
Adding a note that not all first-level directories are sections and including a link to Content Sections, which explains in more detail.
This commit is contained in:
parent
284dc4266c
commit
899b7117ce
@ -78,7 +78,9 @@ sectionPagesMenu = "main"
|
||||
|
||||
The menu name can be anything, but take a note of what it is.
|
||||
|
||||
This will create a menu with all the sections as menu items and all the sections' pages as "shadow-members". The _shadow_ implies that the pages isn't represented by a menu-item themselves, but this enables you to create a top-level menu like this:
|
||||
This will create a menu with all the sections as menu items and all the sections' pages as "shadow-members". Ensure that all first level directories that you would like to show up on this menu are [Branch Bundles](https://gohugo.io/content-management/sections/). Leaf Bundles do not form sections.
|
||||
|
||||
The _shadow_ implies that the pages isn't represented by a menu-item themselves, but this enables you to create a top-level menu like this:
|
||||
|
||||
```
|
||||
<nav class="sidebar-nav">
|
||||
|
Loading…
x
Reference in New Issue
Block a user