Skip to content

Conversation

@cderv
Copy link
Collaborator

@cderv cderv commented Jan 20, 2026

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
Copy link
Collaborator

posit-snyk-bot commented Jan 20, 2026

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
92 of 93 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

3 participants