/ typst / sections / header.typ
header.typ
 1  // Header section - Name and contact info
 2  
 3  #import "../styles.typ": *
 4  
 5  #let header(data) = {
 6    set align(center)
 7    set par(leading: 0.65em)
 8  
 9    text(size: name-size, weight: "bold")[#data.name]
10    linebreak()
11    [#data.department]
12    linebreak()
13    [#data.affiliation]
14    linebreak()
15    [#data.address]
16    linebreak()
17    [E-mail: #link("mailto:" + data.email)[#data.email]]
18    linebreak()
19    [#link(data.website)[#data.website.trim("https://", at: start)] | #link(data.github)[#data.github.trim("https://", at: start)]]
20  }