Allow setting sidebar or not for cv
This commit is contained in:
parent
f19fd2540c
commit
7a503d61fb
1 changed files with 23 additions and 17 deletions
10
cv.typ
10
cv.typ
|
@ -133,7 +133,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#let cv(contents) = {
|
#let cv(contents, use_sidebar: false) = {
|
||||||
set text(lang: lang)
|
set text(lang: lang)
|
||||||
|
|
||||||
let date_formatting = {
|
let date_formatting = {
|
||||||
|
@ -182,6 +182,7 @@
|
||||||
section(title: title, entries:contents.thesis + contents.education)[]
|
section(title: title, entries:contents.thesis + contents.education)[]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if not use_sidebar {
|
||||||
if "volunteering" in contents {
|
if "volunteering" in contents {
|
||||||
let title = sel_word_lang(en:"Volunteer Work", de:"Ehrenamt")
|
let title = sel_word_lang(en:"Volunteer Work", de:"Ehrenamt")
|
||||||
section(title: title, entries:contents.volunteering)[]
|
section(title: title, entries:contents.volunteering)[]
|
||||||
|
@ -201,6 +202,7 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let sidebar = {
|
let sidebar = {
|
||||||
if "volunteering" in contents {
|
if "volunteering" in contents {
|
||||||
|
@ -228,6 +230,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if not use_sidebar {
|
||||||
|
body
|
||||||
|
return
|
||||||
|
}
|
||||||
let margin = 1pt
|
let margin = 1pt
|
||||||
grid(
|
grid(
|
||||||
columns: (2fr, 1fr),
|
columns: (2fr, 1fr),
|
||||||
|
@ -264,7 +270,7 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#cv(
|
#cv.with(use_sidebar: false)(
|
||||||
yaml("content.yml")
|
yaml("content.yml")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue