Skip to content

Commit d712fd2

Browse files
if meta is brand.yml path, replace with blank table
questionable, maybe we should be using a different metadata key here
1 parent 829df61 commit d712fd2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,11 @@ function render_typst_brand_yaml()
256256
end
257257
end,
258258
Meta = function(meta)
259-
meta.brand = meta.brand or {typography = {}}
259+
-- it can contain the path but we want to store an object here
260+
if not meta.brand or pandoc.utils.type(meta.brand) == 'Inlines' then
261+
meta.brand = {}
262+
end
263+
meta.brand.typography = meta.brand.typography or {}
260264
local base = _quarto.modules.brand.get_typography('base')
261265
if base and next(base) then
262266
meta.brand.typography.base = {

0 commit comments

Comments
 (0)