diff --git a/news/changelog-1.8.md b/news/changelog-1.8.md index 9b0fb66634..80524bf0da 100644 --- a/news/changelog-1.8.md +++ b/news/changelog-1.8.md @@ -3,6 +3,7 @@ ## In this release - ([#13396](https://github.com/quarto-dev/quarto-cli/issues/13396)): Fix `quarto publish connect` regression. +- ([#13418](https://github.com/quarto-dev/quarto-cli/issues/13418): Resolve logo paths specified directly in `brand.logo.{size}`. # v1.8 changes diff --git a/src/core/brand/brand.ts b/src/core/brand/brand.ts index 336f3767a7..0f62d755cf 100644 --- a/src/core/brand/brand.ts +++ b/src/core/brand/brand.ts @@ -259,7 +259,7 @@ export class Brand { getLogoResource(name: string): BrandLogoExplicitResource { const entry = this.data.logo?.images?.[name]; if (!entry) { - return { path: name }; + return this.resolvePath(name); } return this.resolvePath(entry); } diff --git a/tests/docs/smoke-all/brand/logo/relative-logo-path-no-project/brand/_brand.yml b/tests/docs/smoke-all/brand/logo/relative-logo-path-no-project/brand/_brand.yml new file mode 100644 index 0000000000..fd3ef9571c --- /dev/null +++ b/tests/docs/smoke-all/brand/logo/relative-logo-path-no-project/brand/_brand.yml @@ -0,0 +1,2 @@ +logo: + medium: ../logos/logo.png diff --git a/tests/docs/smoke-all/brand/logo/relative-logo-path-no-project/index.qmd b/tests/docs/smoke-all/brand/logo/relative-logo-path-no-project/index.qmd new file mode 100644 index 0000000000..f6f90a866d --- /dev/null +++ b/tests/docs/smoke-all/brand/logo/relative-logo-path-no-project/index.qmd @@ -0,0 +1,29 @@ +--- +format: + dashboard: default + revealjs: default + typst: + keep-typ: true +brand: brand/_brand.yml +_quarto: + tests: + dashboard: + ensureFileRegexMatches: + - + - '