Skip to content

Commit 9dd4510

Browse files
brand: also resolve logo paths directly on sizes
fixes #13418
1 parent 3043993 commit 9dd4510

File tree

9 files changed

+67
-1
lines changed

9 files changed

+67
-1
lines changed

src/core/brand/brand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export class Brand {
259259
getLogoResource(name: string): BrandLogoExplicitResource {
260260
const entry = this.data.logo?.images?.[name];
261261
if (!entry) {
262-
return { path: name };
262+
return this.resolvePath(name);
263263
}
264264
return this.resolvePath(entry);
265265
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
logo:
2+
medium: ../logos/logo.png
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
format:
3+
dashboard: default
4+
revealjs: default
5+
typst:
6+
keep-typ: true
7+
brand: brand/_brand.yml
8+
_quarto:
9+
tests:
10+
dashboard:
11+
ensureFileRegexMatches:
12+
-
13+
- '<img src="logos(/|\\)logo.png"'
14+
- []
15+
revealjs:
16+
ensureFileRegexMatches:
17+
-
18+
- '<img src="logos(/|\\)logo.png"'
19+
- []
20+
typst:
21+
ensureTypstFileRegexMatches:
22+
-
23+
- 'background: align\(left\+top, box\(inset: 0\.75in, image\("logos(/|\\\\)logo\.png", width: 1\.5in\)\)'
24+
- []
25+
---
26+
27+
# Test
28+
29+
Some text
11.5 KB
Loading
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/.quarto/
2+
**/*.quarto_ipynb
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
project:
2+
type: default
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
logo:
2+
medium: ../logos/logo.png
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
format:
3+
dashboard: default
4+
revealjs: default
5+
typst:
6+
keep-typ: true
7+
brand: brand/_brand.yml
8+
_quarto:
9+
tests:
10+
dashboard:
11+
ensureFileRegexMatches:
12+
-
13+
- '<img src="logos(/|\\)logo.png"'
14+
- []
15+
revealjs:
16+
ensureFileRegexMatches:
17+
-
18+
- '<img src="logos(/|\\)logo.png"'
19+
- []
20+
typst:
21+
ensureTypstFileRegexMatches:
22+
-
23+
- 'background: align\(left\+top, box\(inset: 0\.75in, image\("logos(/|\\\\)logo\.png", width: 1\.5in\)\)'
24+
- []
25+
---
26+
27+
# Test
28+
29+
Some text
1.82 KB
Loading

0 commit comments

Comments
 (0)