feat(resume): Choose experience display by client,type,chronological

Can be set by setting the point in 'main' array to
'experience_by_client', 'experience_by_type' or just 'experience'
respectively.
This commit is contained in:
Marty Oehme 2025-03-18 14:43:43 +01:00
parent 0dd715d806
commit f60991344d
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -33,7 +33,7 @@
}
}
#let resume(contents, main: ("experience", "education"), sidebar: ("volunteering", "languages", "skills")) = {
#let resume(contents, main: ("experience_by_type", "education"), sidebar: ("volunteering", "languages", "skills")) = {
show: style
show: smartypants
set text(lang: lang)
@ -77,11 +77,20 @@
)
}
if "experience" in main and "experience" in contents {
if "experience_by_type" in main and "experience" in contents {
let title = (en: "Professional Experience", de: "Berufserfahrung").at(lang)
section(title: title)[]
by_experience_type(experience: contents.experience, type: contents.experience_types)
}
if "experience_by_client" in main and "experience" in contents {
let title = (en: "Professional Experience", de: "Berufserfahrung").at(lang)
section(title: title)[]
by_client(experience: contents.experience)
}
if "experience" in main and "experience" in contents {
let title = (en: "Professional Experience", de: "Berufserfahrung").at(lang)
section(title: title, entries: contents.experience)[]
}
if "education" in main and "education" in contents {
let title = (en: "Education", de: "Ausbildung").at(lang)