3. Primary Menu
Planted December 18, 2021
The sidebar of the theme uses the main
menu. Add all the items for your sidebar navigation in this menu.
// config.toml
[menu]
[[menu.main]]
name = 'Home'
url = '/'
weight = 1
[[menu.main]]
name = 'Content'
params.header = true
weight = 2
[[menu.main]]
name = 'Events'
url = '/events'
weight = 3
name
→ Title of the menu itemurl
→ Path to navigateweight
→ Used to decide the order of menu itemsparams.header
→ Display menu item as header
If the link points to an external website, the external icon is already displayed.
Using JSON or YAML formats? Check out the menu documentation.