Skip to content

Commit 82c96de

Browse files
typst brand yaml: make default logo slightly smaller
1 parent 8b96e59 commit 82c96de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/resources/filters/quarto-post/typst-brand-yaml.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ function render_typst_brand_yaml()
278278
inset = _quarto.modules.typst.as_typst_dictionary(pads)
279279
end
280280
else
281-
inset = '0.5in'
281+
inset = '0.75in'
282282
end
283-
logoOptions.width = _quarto.modules.typst.css.translate_length(logoOptions.width or '2in')
283+
logoOptions.width = _quarto.modules.typst.css.translate_length(logoOptions.width or '1.5in')
284284
logoOptions.location = logoOptions.location and
285285
location_to_typst_align(logoOptions.location) or 'left+top'
286286
quarto.log.debug('logo options', logoOptions)

tests/docs/smoke-all/typst/brand-yaml/logo/posit/brand-logo.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ _quarto:
99
typst:
1010
ensureTypstFileRegexMatches:
1111
-
12-
- '#set page\(background: align\(left\+top, box\(inset: 0.5in, image\("posit-logo-2024.svg", width: 2in, alt: "Posit Logo"\)\)\)\)'
12+
- '#set page\(background: align\(left\+top, box\(inset: 0.75in, image\("posit-logo-2024.svg", width: 1.5in, alt: "Posit Logo"\)\)\)\)'
1313
- []
1414
---
1515

0 commit comments

Comments
 (0)