Skip to content

Commit

Permalink
Add config option to control child page limit
Browse files Browse the repository at this point in the history
  • Loading branch information
viren-nadkarni authored Dec 14, 2022
1 parent 799fc54 commit 39c1781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userguide/content/en/docs/adding-content/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ description: >

By default, the section menu shows the current section fully expanded all the way down. This may make the left nav too long and difficult to scan for bigger sites. Try setting site parameter `ui.sidebar_menu_compact = true` in `config.toml`.

With the compact menu (`.ui.sidebar_menu_compact = true`), only the current page's ancestors, siblings and direct descendants are shown. You can use the optional parameter `.ui.ul_show` to set a desired menu depth to always be visible. For example, with `.ui.ul_show = 1` the first menu level is always displayed.
With the compact menu (`.ui.sidebar_menu_compact = true`), only the current page's ancestors, siblings and direct descendants are shown. You can use the optional parameter `.ui.ul_show` to set a desired menu depth to always be visible. For example, with `.ui.ul_show = 1` the first menu level is always displayed. The number of child pages shown per parent can be controlled using `sidebar_menu_truncate` (default: 50).

As well as the completely expanded and compact menu options, you can also create a foldable menu by setting the site parameter `ui.sidebar_menu_foldable = true` in `config.toml`. The foldable menu lets users expand and collapse menu sections by toggling arrow icons beside the section parents in the menu.

Expand Down

0 comments on commit 39c1781

Please sign in to comment.