Giving different sidebar contents in subdirectories #8117
Replies: 3 comments 4 replies
-
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: knitr
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```

The end.
```` |
Beta Was this translation helpful? Give feedback.
-
I generated a default blog, then edited the It looks like from this sample it uses whichever sidebar the page is in the contents of? (as in this case the 'cheese' is used for 'about.qmd', and 'badger' is used by 'index.qmd'?
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I have been trying to set
sidebar: contents:
to different values. I was trying to follow the guide in: https://quarto.org/docs/websites/website-navigation.html but couldn't understand how to have different sidebars on different pages.What I would like is, for every file inside the sub-directory
book
, to have a specific sidebar (which shows the full outline of the book), but a differentsidebar: contents
for other files. I tried settingsidebar: contents:
inside_metadata.yml
in thebook
directory, but that did not seem to change the contents of the sidebar?Beta Was this translation helpful? Give feedback.
All reactions