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

View file

@ -5,12 +5,16 @@ about:
icon: icon:
- text: contact@martyoeh.me - text: contact@martyoeh.me
icon: icon:
link: mailto:contact@martyoeh.me
- text: +49 177 377 4949 - text: +49 177 377 4949
icon: icon:
link: tel:+491773774949
- text: martyoeh.me - text: martyoeh.me
icon: icon:
link: https://martyoeh.me
- text: github.com/marty-oehme - text: github.com/marty-oehme
icon: icon:
link: https://github.com/marty-oehme
summary: summary:
de: | # FIXME: Update from English summary below de: | # FIXME: Update from English summary below
Ich habe im September 2021 das EU-geförderte European Master of Global Studies Studienprogramm absolviert, Ich habe im September 2021 das EU-geförderte European Master of Global Studies Studienprogramm absolviert,

32
cv.typ
View file

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