diff --git a/docs/authoring/brand.qmd b/docs/authoring/brand.qmd index 72c6531af8..5af90da4f9 100644 --- a/docs/authoring/brand.qmd +++ b/docs/authoring/brand.qmd @@ -394,7 +394,6 @@ logo: --- ``` - ::: {.callout-warning} ## Limitation @@ -405,6 +404,32 @@ It is [not currently possible](https://github.com/quarto-dev/quarto-cli/issues/1 When using `format: typst` you can additionally [customize the logo position](../output-formats/typst.qmd#logo-position). +#### Disabling the logo + +If you want to use `_brand.yml` for colors and typography but don't want the brand logo to appear on specific navigation elements, you can disable it in your `_quarto.yml`. + +For websites: + +```{.yaml filename="_quarto.yml"} +website: + sidebar: + logo: false + navbar: + logo: false +``` + +For books: + +```{.yaml filename="_quarto.yml"} +book: + navbar: + logo: false + sidebar: + logo: false +``` + +This is useful when you want brand styling applied to your project but prefer not to display a logo in the navigation. + ### Typography [Typography in the **brand.yml** docs](https://posit-dev.github.io/brand-yml/brand/typography.html){.external} diff --git a/docs/books/book-output.qmd b/docs/books/book-output.qmd index 10a613e698..4e82898dd0 100644 --- a/docs/books/book-output.qmd +++ b/docs/books/book-output.qmd @@ -87,6 +87,16 @@ book: background: light ``` +#### Sidebar Logo + +You can disable the brand logo on the sidebar if you're using a [`_brand.yml`](/docs/authoring/brand.qmd): + +``` yaml +book: + sidebar: + logo: false +``` + ## Cover Images You can provide a cover image for EPUB and/or HTML formats using the `cover-image` option. For example: diff --git a/docs/websites/website-navigation.qmd b/docs/websites/website-navigation.qmd index 1a099a3980..5bade3b78b 100644 --- a/docs/websites/website-navigation.qmd +++ b/docs/websites/website-navigation.qmd @@ -55,7 +55,7 @@ Here are all of the options available for top navigation: | Option | Description | |------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `title` | Navbar title (uses the `site: title` if none is specified). Use `title: false` to suppress the display of the title on the navbar. | -| `logo` | Logo image to be displayed left of the title. | +| `logo` | Logo image to be displayed left of the title. When using a [`_brand.yml`](/docs/authoring/brand.qmd) with a logo, the brand logo is automatically displayed. Use `logo: false` to suppress the brand logo on the navbar. | | `logo-alt` | Alternate text for the logo image. | | `logo-href` | Target href from navbar logo / title. By default, the logo and title link to the root page of the site (`/index.html`). | | `background` | Background color ("primary", "secondary", "success", "danger", "warning", "info", "light", "dark", or hex color). | @@ -164,7 +164,7 @@ Here are all of the options available for side navigation: |------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `id` | Optional identifier (used only for hybrid navigation, described below). | | `title` | Sidebar title (uses the project title if none is specified). | -| `logo` | Optional logo image. | +| `logo` | Optional logo image. When using a [`_brand.yml`](/docs/authoring/brand.qmd) with a logo, the brand logo is automatically displayed. Use `logo: false` to suppress the brand logo on the sidebar. | | `logo-alt` | Alternate text for the logo image. | | `logo-href` | Target href from sidebar logo. By default, the logo and title link to the root page of the site (`/index.html`). | | `search` | Include a search box (true or false). Note that if there is already a search box on the top navigation bar it won't be displayed on the sidebar. |