Skip to content

Commit e86a934

Browse files
committed
docs: document logo: false feature for brand configuration
Document that _brand.yml logos are automatically applied to navbar/sidebar, and how to opt-out using logo: false in _quarto.yml.
1 parent be6590f commit e86a934

3 files changed

Lines changed: 38 additions & 3 deletions

File tree

‎docs/authoring/brand.qmd‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ logo:
394394
---
395395
```
396396

397-
398397
::: {.callout-warning}
399398

400399
## Limitation
@@ -405,6 +404,32 @@ It is [not currently possible](https://github.com/quarto-dev/quarto-cli/issues/1
405404

406405
When using `format: typst` you can additionally [customize the logo position](../output-formats/typst.qmd#logo-position).
407406

407+
#### Disabling the logo
408+
409+
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`.
410+
411+
For websites:
412+
413+
```{.yaml filename="_quarto.yml"}
414+
website:
415+
sidebar:
416+
logo: false
417+
navbar:
418+
logo: false
419+
```
420+
421+
For books:
422+
423+
```{.yaml filename="_quarto.yml"}
424+
book:
425+
navbar:
426+
logo: false
427+
sidebar:
428+
logo: false
429+
```
430+
431+
This is useful when you want brand styling applied to your project but prefer not to display a logo in the navigation.
432+
408433
### Typography
409434

410435
[Typography in the **brand.yml** docs](https://posit-dev.github.io/brand-yml/brand/typography.html){.external}

‎docs/books/book-output.qmd‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ book:
8787
background: light
8888
```
8989

90+
#### Sidebar Logo
91+
92+
You can disable the brand logo on the sidebar if you're using a [`_brand.yml`](/docs/authoring/brand.qmd):
93+
94+
``` yaml
95+
book:
96+
sidebar:
97+
logo: false
98+
```
99+
90100
## Cover Images
91101

92102
You can provide a cover image for EPUB and/or HTML formats using the `cover-image` option. For example:

‎docs/websites/website-navigation.qmd‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Here are all of the options available for top navigation:
5555
| Option | Description |
5656
|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
5757
| `title` | Navbar title (uses the `site: title` if none is specified). Use `title: false` to suppress the display of the title on the navbar. |
58-
| `logo` | Logo image to be displayed left of the title. |
58+
| `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. |
5959
| `logo-alt` | Alternate text for the logo image. |
6060
| `logo-href` | Target href from navbar logo / title. By default, the logo and title link to the root page of the site (`/index.html`). |
6161
| `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:
164164
|------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
165165
| `id` | Optional identifier (used only for hybrid navigation, described below). |
166166
| `title` | Sidebar title (uses the project title if none is specified). |
167-
| `logo` | Optional logo image. |
167+
| `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. |
168168
| `logo-alt` | Alternate text for the logo image. |
169169
| `logo-href` | Target href from sidebar logo. By default, the logo and title link to the root page of the site (`/index.html`). |
170170
| `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. |

0 commit comments

Comments
 (0)