Make work experience bulletpoints optional

By supplying `bulletpoints_show = False` to the experience function,
the bullet points under each work experience heading will be
entirely removed so only the work experience names themselves
remain. Good for a general CV, or non-american style listings.
This commit is contained in:
Marty Oehme 2024-05-29 09:05:23 +02:00
parent 6f1b5d0b21
commit f8ee96970a
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -23,7 +23,8 @@ def experience_to_md(
data: dict[str, Any],
lang: str = "en",
headline: str = "",
subdued_publications: bool = True,
subdued_publications: bool = True, # slightly off-color presentation
bulletpoints_show: bool = True,
):
if "experience" not in data:
return ""
@ -36,8 +37,9 @@ def experience_to_md(
if "publication" in exp:
md += _publication_md(exp["publication"][lang], subdued_publications)
for point in exp["bullets"]:
md += f"* {point[lang]}\n"
if bulletpoints_show:
for point in exp["bullets"]:
md += f"* {point[lang]}\n"
md += "\n\n"
return md