Split travel and product-test via explicit report-type templates.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -141,6 +141,7 @@ function Meta(meta)
|
||||
local logo_path = resolve_logo_path(stringify(meta.logofile or "assets/logo.png"))
|
||||
local logo_uri = file_to_data_uri(logo_path)
|
||||
local destinations = escape_html(meta_list_join(meta.destinations, " - "))
|
||||
local report_type = stringify(meta["report-type"])
|
||||
local purpose = stringify(meta.purpose)
|
||||
local report_date = escape_html(meta["report-date"] or meta.date or "")
|
||||
local authors = escape_html(author_names(meta))
|
||||
@@ -190,8 +191,9 @@ function Meta(meta)
|
||||
</div>
|
||||
]], running_logo, company, subtitle)
|
||||
|
||||
-- Travel meta is gated on report-type (from templates/travel.yml), not on purpose.
|
||||
local travel = ""
|
||||
if purpose ~= nil and purpose ~= "" then
|
||||
if report_type == "travel" then
|
||||
travel = string.format([[
|
||||
<div class="print-travel-meta print-only">
|
||||
<hr class="rule" />
|
||||
|
||||
Reference in New Issue
Block a user