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:
Marty Oehme 2025-08-25 11:33:22 +02:00
parent ab25f44b58
commit febdcb9796
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -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 {