Skip to content

Commit 593fd08

Browse files
committed
fix: for contact field in document-type config
1 parent 71f4fc8 commit 593fd08

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/scripts/filters/inject_contact_info.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ end
1717

1818
function should_inject_contact(meta)
1919
-- Opt out with `contact: false` in the frontmatter; otherwise inject.
20-
if meta.contact and pandoc.utils.stringify(meta.contact) == "false" then
20+
if meta.contact == false
21+
or (meta.contact and pandoc.utils.stringify(meta.contact) == "false") then
2122
return false
2223
end
2324
return true

0 commit comments

Comments
 (0)