feat(lib): Add entry hiding with content boolean
Add the simple value `hidden: true` to any entry (experience, education, volunteering, skills, language, etc) and it will not be displayed on the final output.
This commit is contained in:
parent
ab25f44b58
commit
febdcb9796
1 changed files with 14 additions and 9 deletions
23
lib/lib.typ
23
lib/lib.typ
|
|
@ -64,7 +64,10 @@
|
||||||
block(inset: 5%, width: 85%, text(fill: luma(150), body))
|
block(inset: 5%, width: 85%, text(fill: luma(150), body))
|
||||||
}
|
}
|
||||||
|
|
||||||
#let entry(item: ()) = {
|
#let entry(item: (), show_sublists: true) = {
|
||||||
|
if "hidden" in item and item.hidden == true {
|
||||||
|
return
|
||||||
|
}
|
||||||
if "title" in item {
|
if "title" in item {
|
||||||
[*#item.title.at(lang)*]
|
[*#item.title.at(lang)*]
|
||||||
}
|
}
|
||||||
|
|
@ -78,15 +81,17 @@
|
||||||
if "date" in item {
|
if "date" in item {
|
||||||
[ _#item.date.at(lang)_ \ ]
|
[ _#item.date.at(lang)_ \ ]
|
||||||
}
|
}
|
||||||
if "bullets" in item {
|
if show_sublists == true {
|
||||||
for bullet in item.bullets {
|
if "bullets" in item {
|
||||||
[- #bullet.at(lang)]
|
for bullet in item.bullets {
|
||||||
|
[- #bullet.at(lang)]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
if "modules" in item {
|
||||||
if "modules" in item {
|
subdued[Relevante Module:]
|
||||||
subdued[Relevante Module:]
|
for bullet in item.modules {
|
||||||
for bullet in item.modules {
|
subdued[ - #bullet.at(lang)]
|
||||||
subdued[ - #bullet.at(lang)]
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if "publication" in item {
|
if "publication" in item {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue