sidebar
One or more menu identifiers used to populate the sidebar on this page, overriding the default sidebar for the section. Each identifier must correspond to a menu.sidebar entry in the site configuration.
| Property | Details |
|---|---|
| Type | string[] |
| Accepted values |
|
When sidebar is omitted, the default sidebar for the section is used.
Example
Define the menu in menus.toml:
[[sidebar]]
identifier = "my-custom-sidebar"
name = "My Project"
url = "#"
weight = 1
[[sidebar]]
parent = "my-custom-sidebar"
name = "Overview"
url = "/my-project/"
weight = 1
Then reference it in the page front matter:
sidebar:
- "my-custom-sidebar"