Restructure code: split features into separate files

This commit is contained in:
2026-01-28 13:33:02 +01:00
parent fcd5378f51
commit de6dcf2b82
18 changed files with 646 additions and 629 deletions
+48
View File
@@ -0,0 +1,48 @@
#import "marks.typ"
#let render(title, place, author, reportType, confidential: false, tlp: none, draft: false) = {
// Define page
set page(
background: [
#image("title.png")
],
margin: (
top: 50%
)
)
// Reset counter
counter(page).update(n => n - 1)
text(size: 32pt, [
#text(reportType)\
#text(title, weight: "black")
])
v(0.25pt)
text(size: 16pt, [
#place, #datetime.today().display("[day].[month].[year]")
#author
])
v(1fr)
grid(
columns: (1fr, 1fr, 1fr),
gutter: 5pt,
rows: (75pt),
// "Confidential" marking
if confidential {
marks.confidential()
},
// "Draft" marking
if draft {
marks.draft()
},
// TLP marking, see https://www.first.org/tlp/
if tlp != none {
marks.tlp(tlp)
}
)
}