Quarto Blog: How to enable sidebar only in posts that have multiple pages? #10707
-
DescriptionSo, I just created a new quarto blog from RStudio. After adding some things, the posts directory looks like this:
Inside After reading https://quarto.org/docs/websites/website-navigation.html#side-navigation, I tried as follow: website:
sidebar:
style: "docked"
search: true
contents:
- text: "Introduction"
href: index.qmd
- text: "Part 1"
href: part1.qmd
- text: "Part 2"
href: part2.qmd Unfortunately, it doesn't work. The sidebar doesn't even appear. A second issue is, Here are the links to both the repo and the live page:
Note: This issue is similar to #9782 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
All sidebars must be defined in |
Beta Was this translation helpful? Give feedback.
-
Pull request is up to add an example on how to reuse a sidebar: |
Beta Was this translation helpful? Give feedback.
All sidebars must be defined in
_quarto.yml
and referenced (so you need to setid
as shown in the documentation) where you want it.