Skip to content

Support logo: false to disable sidebar/navbar logos with _brand.yml - #13922

Merged
cderv merged 9 commits into
mainfrom
fix/issue-13910
Jan 20, 2026
Merged

cderv merged 9 commits into
mainfrom
fix/issue-13910

Conversation

@cderv

@cderv cderv commented Jan 20, 2026

Copy link
Copy Markdown
Member

When using _brand.yml with logo definitions, there was no way to disable the logo in specific navigation elements without removing it from the brand file.

Now you can explicitly opt out:

website:
  sidebar:
    logo: false
  navbar:
    logo: false

Also works in book projects with book.sidebar.logo: false and book.navbar.logo: false.

Fixes #13910

cderv added 9 commits January 20, 2026 13:45
Schema and code fix to allow explicitly disabling sidebar and navbar logo when
`_brand.yml` defines one. Includes smoke test.
- Move theme configuration from top-level to format.html.theme
  with proper base theme [cosmo/darkly, brand] pattern
- Add test for disabling both navbar and sidebar logos together
- add a navbar test for books too
- test for disabling logo in sidebar in books project
- add a test about disabling logo in sidebar and navbar with brand theme in books
- Add images and optimize their size using oxipng
- add check in the second page for no logos
- by default, sidebar will have a logo if a brand logo is defined
Skip logo processing when sidebar.logo is explicitly false to prevent
config mutation that caused brand logos to appear on subsequent pages
during quarto preview.
@posit-snyk-bot

posit-snyk-bot commented Jan 20, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@cderv
cderv merged commit 1855032 into main Jan 20, 2026
90 of 91 checks passed
@cderv
cderv deleted the fix/issue-13910 branch January 20, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to turn off logo in sidebar if using _brand.yml

2 participants