-
DescriptionWhen I define a sidebar in Current configuration:
Expected behavior: The sidebar should only appear on the index page.
Any suggestions for controlling sidebar inheritance or limiting the sidebar to specific pages would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? The goal is to make it as easy as possible for us to recreate your problem so that we can fix it: please help us help you! Thanks. For reference, the documentation on sidebar: https://quarto.org/docs/websites/website-navigation.html#side-navigation
You can share a self-contained "working" (reproducible) Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four If you have multiple files (and if it is absolutely required to have multiple files), please share as a Git repository.
Additionally and if not already given, please share the output of |
Beta Was this translation helpful? Give feedback.
-
About the use case: I honestly have 4-5 level deep hierarchies, I want the side bar to "start" from the current level each time i move in a new hierarchy, ig similar to entering a directory in a file manager. |
Beta Was this translation helpful? Give feedback.
ok, I guessed so.
I don't want sub pages to have inter-navigation, i want the subpages to hyperlink to root for navigation.
So, the flow is: define sidebar with id in _quarto.yml . but just defining sidebar won't show it on the children pages. for that you need to write
sidebar: id-name
atleast in one child page's frontmatter?I mean for example if I remove
sidebar: gyan
from index.qmd, although I still …