Add clickable links to header contact information

This commit is contained in:
Marty Oehme 2024-09-15 11:21:02 +02:00
parent 50c2900b04
commit bdf8abfe95
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 25 additions and 11 deletions

32
cv.typ
View file

@ -33,6 +33,22 @@
#set par(justify: true)
#let header(about, columns: (1.5fr, 1fr, 1fr)) = {
[= #about.fullname];
let contact_fields = (for c in about.contact {
if "link" in c {
([#c.icon ~ #link(c.link)[#c.text]],)
} else {
([#c.icon ~ #c.text],)
}
})
grid(
columns: columns,
gutter: 5pt,
..contact_fields
);
}
#let horizon_line() = {v(-3pt); line(length: 100%); v(-5pt)}
#let section_header(title) = {[== #title]; horizon_line()};
@ -93,20 +109,14 @@
}
}
#let resume(contents) = {
[= #contents.about.fullname];
let contacts = (for c in contents.about.contact {
(c.icon + " " + c.text,)
})
grid(
columns: (1.5fr, 1fr, 1fr),
gutter: 5pt,
..contacts
);
horizon_line();
header(contents.about)
if "summary" in contents {
section(title:"", {
contents.summary.at(lang)
};
})
};
if "experience" in contents {
let title = sel_word_lang(en:"Professional Experience", de:"Berufserfahrung")