-
As of Quarto CLI 1.8.7 DescriptionAssuming I have a At the moment, there is still the path resolution issue that does not use project root as reference, so you can't really use the logo for instance via the shortcode or brand in a document not living at the root. Example
logo:
images:
company-logo:
path: company.png
alt: "Company Logo"
medium: company-logo
brand:
light: company-brand-light.yml How to set the following? logo:
images:
company-team-logo:
path: company-team.png
alt: "Team Logo from Company"
medium: company-team-logo It can be set in a document frontmatter but in a context of a project with multiple documents, having to set the following is really not doable at many levels. ---
title: document title
brand:
logo:
images:
company-team-logo:
path: company-team.png
alt: "Team Logo from Company"
medium: company-team-logo
--- |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Wouldn't the # _quarto.yml
metadata-files:
- _brand.yml
- _customBrandLogo.yml # file containing the new logo I think the last logo defined should override the previous one. |
Beta Was this translation helpful? Give feedback.
-
The short answer is "no". The long answer is "ideally there should be a way, but the semantics get complicated" |
Beta Was this translation helpful? Give feedback.
-
Although you can't override brand yml values in general, the brand.yml logo populates either the sidebar logo or the navbar logo, depending on which navigation you have set up. So you can override the logo in the navigation configuration:
project:
type: website
website:
title: "override brand logo"
sidebar:
logo: company-team.png
style: "docked"
contents:
- document.qmd
brand:
light: company-brand-light.yml Arguably we should allow brand.yml image resource names and small/medium/large here, as we already have in typst/revealjs/dashboard |
Beta Was this translation helpful? Give feedback.
The short answer is "no". The long answer is "ideally there should be a way, but the semantics get complicated"