Skip to content

Commit 67263ae

Browse files
committed
logo param can be undefined so nil in Lua
(cherry picked from commit 21ec8ba)
1 parent 08bd8d1 commit 67263ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function render_typst_brand_yaml()
251251
end
252252
-- logo
253253
local logo = param('logo')
254-
if not next(logo) then
254+
if logo and not next(logo) then
255255
meta.logo = nil
256256
end
257257
local logoOptions = {}

0 commit comments

Comments
 (0)