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))
}
#let entry(item: ()) = {
#let entry(item: (), show_sublists: true) = {
if "hidden" in item and item.hidden == true {
return
}
if "title" in item {
[*#item.title.at(lang)*]
}
@ -78,6 +81,7 @@
if "date" in item {
[ _#item.date.at(lang)_ \ ]
}
if show_sublists == true {
if "bullets" in item {
for bullet in item.bullets {
[- #bullet.at(lang)]
@ -89,6 +93,7 @@
subdued[ - #bullet.at(lang)]
}
}
}
if "publication" in item {
subdued[#item.publication.at(lang) \ ]
}