Repository navigation
Description
I have:
- searched the issue tracker for similar issues
- installed the latest version of Quarto CLI
- formatted my issue following the Bug Reports guide
Bug description
If you add a navbar to a Quarto website (I've personally only tested this on a "book" website), it removes the title from the sidebar above the TOC. Instead, the title is shown up in the navbar by default. No problem. However, if I hide it from the navbar, it should show back up in the sidebar.
Also, adding "title: true" or "title: "My Book Title"" under the sidebar config in _quarto.yml doesn't restore the title.
However, the div and a href are still in the sidebar, and so the place for the title still takes up vertical space, but it just doesn't contain the text it should. Here is the html that is still included in the sidebar:
<div class="pt-lg-2 mt-2 text-left sidebar-header sidebar-header-stacked">
<a href="http://localhost:3092/" class="sidebar-logo-link" data-original-href="http://localhost:3092/index.html">
</a>
</div>
I believe this is the same bug reported without enough detail here: #8661
Attached is a minimal _quarto.yml file that demonstrates what I mean.
Steps to reproduce
Add a navbar to a quarto book, hiding the title in it, like so:
project:
type: book
book:
title: "test quarto book 2025"
author: "Norah Jones"
date: "9/18/2025"
chapters:
- index.qmd
sidebar:
search: true
navbar:
title: false
search: false
left:
- text: Test
href: http://test.com
- text: Example
href: https://example.com
format:
html:
theme:
- cosmo
- brand
Actual behavior
Title disappears from sidebar also.
Expected behavior
Title should only be removed from the navbar and should be visible in the sidebar.
Your environment
Mac OS 26
Quarto check output
Quarto 1.8.24
[✓] Checking environment information...
Quarto cache location: /Users/jtbayly/Library/Caches/quarto
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.6.3: OK
Dart Sass version 1.87.0: OK
Deno version 2.3.1: OK
Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.8.24
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /Library/TeX/texbin
Version: 2020
[✓] Checking Chrome Headless....................OK
Using: Chrome found on system
Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Source: MacOS known location
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.13.5
Path: /usr/local/opt/python@3.13/bin/python3.13
Jupyter: (None)
Jupyter is not available in this Python installation.
Install with python3 -m pip install jupyter
[✓] Checking R installation...........OK
Version: 4.3.0
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library
knitr: 1.43
rmarkdown: 2.24
[✓] Checking Knitr engine render......OK
Activity
mcanouil commentedon Sep 30, 2025
Could you provide a fully reproducible example rather than a snippet? A Git repository for example.
This will ensure we are running the exact same thing instead of having to guess all the other components which in end can make the issue disappear as we are unlikely to create the same example you used.
jtbayly commentedon Oct 1, 2025
Sorry, it works this way for any book at all. Feel free to use the default book in Rstudio and replace the yaml file with the one above.
jtbayly commentedon Jan 16, 2026
Proposal: support the following options in the YAML:
Here is how each option would work...
Navbar:
- true: includes the website/book title in navbar
- false: no navbar title
- "custom navbar title text": includes the custom title in the navbar
- undefined (title line not included): includes website/book title by default
Sidebar:
- true: includes the website/book title in sidebar
- false: no sidebar title
- "custom sidebar title text": includes the custom title in the sidebar
- undefined (title line not included): includes website/book title only if (no title in navbar AND no logo in the sidebar). Exception: for books, a sidebar logo does not hide the title. (This exception already existed, so this prevents unexpected changes.)
This is mostly just adding features to make the titling more flexible, but it is a change in that it fixes the original bug report: If the title is disabled in the navbar, the title won't be erroneously hidden in the sidebar, too.
feat(website): enhanced control over navbar and sidebar titles (quart…
feat(website): enhanced control over navbar and sidebar titles (quart…
Merge branch 'fix-issue-quarto-dev#13477' of https://github.com/jtbay…