Show shared title block on HTML and align PDF table chrome.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- Inject typst-templates-style title block + sidebar into HTML for WeasyPrint PDF.
|
||||
-- Screen CSS hides .print-only; print.css shows them.
|
||||
-- Title block is shared with screen HTML; .print-only (running header, sidebar) is screen-hidden.
|
||||
|
||||
local function stringify(v)
|
||||
if v == nil then
|
||||
@@ -162,8 +162,9 @@ function Meta(meta)
|
||||
end
|
||||
|
||||
-- Logo first (left), title text second (right) — matches product_test_template.typ
|
||||
-- Visible on screen and in PDF (no print-only); Quarto default title is hidden in CSS.
|
||||
local title_block = string.format([[
|
||||
<div class="print-title-block print-only">
|
||||
<div class="print-title-block">
|
||||
%s
|
||||
<div class="title-text">
|
||||
<p class="company-line">%s%s</p>
|
||||
|
||||
Reference in New Issue
Block a user