From febdcb9796965b6a9e4a262bb16dfb13a54447ce Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 25 Aug 2025 11:33:22 +0200 Subject: [PATCH] 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. --- lib/lib.typ | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/lib/lib.typ b/lib/lib.typ index d0000fc..661248d 100644 --- a/lib/lib.typ +++ b/lib/lib.typ @@ -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,15 +81,17 @@ if "date" in item { [ _#item.date.at(lang)_ \ ] } - if "bullets" in item { - for bullet in item.bullets { - [- #bullet.at(lang)] + if show_sublists == true { + if "bullets" in item { + for bullet in item.bullets { + [- #bullet.at(lang)] + } } - } - if "modules" in item { - subdued[Relevante Module:] - for bullet in item.modules { - subdued[ - #bullet.at(lang)] + if "modules" in item { + subdued[Relevante Module:] + for bullet in item.modules { + subdued[ - #bullet.at(lang)] + } } } if "publication" in item {