Strip HTML-only author meta from product-test reports.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10,6 +10,8 @@ format:
|
|||||||
css: styles/report.css
|
css: styles/report.css
|
||||||
embed-resources: true
|
embed-resources: true
|
||||||
toc: false
|
toc: false
|
||||||
|
filters:
|
||||||
|
- filters/html-no-extra-meta.lua
|
||||||
typst:
|
typst:
|
||||||
lang: fa
|
lang: fa
|
||||||
mainfont: IRNazanin
|
mainfont: IRNazanin
|
||||||
|
|||||||
@@ -11,16 +11,6 @@ author:
|
|||||||
# Shown on the PDF sidebar (not the travel-report meta block).
|
# Shown on the PDF sidebar (not the travel-report meta block).
|
||||||
destinations:
|
destinations:
|
||||||
- نتایج تست پیگمنتهای شرکت اسمالتس
|
- نتایج تست پیگمنتهای شرکت اسمالتس
|
||||||
format:
|
|
||||||
html:
|
|
||||||
include-before-body:
|
|
||||||
- text: |
|
|
||||||
<dl class="report-meta">
|
|
||||||
<dt>موضوع</dt><dd>نتایج تست پیگمنتهای شرکت اسمالتس</dd>
|
|
||||||
<dt>نویسنده</dt><dd>دیاکو سلطانپور</dd>
|
|
||||||
<dt>تاریخ</dt><dd>۲۲ تا ۴/۶/۲۶</dd>
|
|
||||||
</dl>
|
|
||||||
typst: default
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# اطلاعات کلی
|
# اطلاعات کلی
|
||||||
|
|||||||
9
filters/html-no-extra-meta.lua
Normal file
9
filters/html-no-extra-meta.lua
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
-- 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
|
||||||
@@ -45,8 +45,10 @@ h1.title {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.quarto-title-meta,
|
.quarto-title-meta,
|
||||||
.quarto-title-meta-contents {
|
.quarto-title-meta-contents,
|
||||||
text-align: right;
|
p.author,
|
||||||
|
.quarto-title-meta-author {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.report-meta {
|
.report-meta {
|
||||||
|
|||||||
Reference in New Issue
Block a user