Hybrid Navigation: Different Sidebars for sub-sections (below top level of nav menu) #1602
-
Hello all... I'm building a site that's going to contain a section with a few sub-levels, like this: Section I'd like to have different contents in the right-hand navigation for each of the Subsections above. For instance, the side nav for 'Subsection 1' should only have links to the articles in Subsection 1. However, I do NOT want the subsections to be top-level items in the horizontal nav across the top of the site. It seems from the docs that this is not an option. The explanation at https://quarto.org/docs/websites/website-navigation.html#hybrid-navigation shows different side nav for each of the top-level items in the top nav. It doesn't show a way to create a side nav that is specific to a site area that is only accessible as an item that appears in a dropdown from the nav. Am I correct that a side-nav varies across different subsections is not an option? (By the way, there will be too many subsections in my site to create a separate top-level top-nav item for each one!) Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Answering my own question! The answer is: "No, I'm not correct!" . Quarto DOES allow you to set up separate side nav for subsections of the site that are nested within a top-nav dropdown menu. Here's an example of a
The key thing seems to matching the 'title' for each sidebar to the title for the desired item from the nav dropdown menu. |
Beta Was this translation helpful? Give feedback.
Answering my own question! The answer is: "No, I'm not correct!" . Quarto DOES allow you to set up separate side nav for subsections of the site that are nested within a top-nav dropdown menu. Here's an example of a
_quarto.yml
that has this effect: