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],
|
data: dict[str, Any],
|
||||||
lang: str = "en",
|
lang: str = "en",
|
||||||
headline: str = "",
|
headline: str = "",
|
||||||
subdued_publications: bool = True,
|
subdued_publications: bool = True, # slightly off-color presentation
|
||||||
|
bulletpoints_show: bool = True,
|
||||||
):
|
):
|
||||||
if "experience" not in data:
|
if "experience" not in data:
|
||||||
return ""
|
return ""
|
||||||
|
@ -36,6 +37,7 @@ def experience_to_md(
|
||||||
if "publication" in exp:
|
if "publication" in exp:
|
||||||
md += _publication_md(exp["publication"][lang], subdued_publications)
|
md += _publication_md(exp["publication"][lang], subdued_publications)
|
||||||
|
|
||||||
|
if bulletpoints_show:
|
||||||
for point in exp["bullets"]:
|
for point in exp["bullets"]:
|
||||||
md += f"* {point[lang]}\n"
|
md += f"* {point[lang]}\n"
|
||||||
md += "\n\n"
|
md += "\n\n"
|
||||||
|
|
Loading…
Reference in a new issue