Files
business-report-templates/filters/html-no-extra-meta.lua
2026-07-18 12:00:01 +03:30

10 lines
274 B
Lua

-- Keep YAML author for Typst/PDF (sidebar + document metadata),
-- but strip it from HTML so the page does not show more than the PDF body.
function Meta(meta)
if quarto.doc.is_format("html") then
meta.author = nil
meta["by-author"] = nil
end
return meta
end