Skip to content

Commit

Permalink
also populate brand.typography.headings for title if there is any base
Browse files Browse the repository at this point in the history
since we can't default to 'do nothing', we must implement
full inheritance in every case for brand.typography.headings
  • Loading branch information
gordonwoodhull committed Nov 15, 2024
1 parent 9286ded commit ba633c8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/filters/quarto-post/typst-brand-yaml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ function render_typst_brand_yaml()

local headings = _quarto.modules.brand.get_typography('headings')
local foregroundColor = _quarto.modules.brand.get_color('foreground')
if headings and next(headings) or foregroundColor then
if headings and next(headings) or base and next(base) or foregroundColor then
base = base or {}
headings = headings or {}
local color = headings.color or foregroundColor
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: "Untitled"
format:
html: default
typst:
keep-typ: true
revealjs:
output-file: base-reveal.html
brand:
typography:
fonts:
- family: Tiny5
source: google
base: Tiny5
_quarto:
tests:
typst:
ensureTypstFileRegexMatches:
-
- 'font: \("Tiny5",\),'
- 'heading-family: \("Tiny5",\)'

---

## Section

{{< lipsum 1 >}}

0 comments on commit ba633c8

Please sign in to comment.