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:
parent
6f1b5d0b21
commit
f8ee96970a
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue