Skip to content

Commit ea24a03

Browse files
committed
docs: add note and example on how to reuse a sidebar for a page
1 parent 33f56f9 commit ea24a03

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/websites/website-navigation.qmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,13 @@ website:
377377
title: "Reference"
378378
contents:
379379
# navigation items
380-
380+
```
381+
382+
To use a specific sidebar on a page or a group of pages, specify the `sidebar` ID in the front matter of the page or in the `_metadata.yml` file.
383+
For example, to include the tutorials sidebar, from the above example, on a page, add the following to the page's front matter:
384+
385+
```yaml
386+
sidebar: tutorials
381387
```
382388

383389
## Breadcrumbs

0 commit comments

Comments
 (0)