Separate client from title
Now we can sort and display per-client and not only chronologically
This commit is contained in:
parent
f181d0a4fd
commit
05302ff8dc
2 changed files with 49 additions and 20 deletions
|
|
@ -23,8 +23,8 @@ def experience_to_md(
|
|||
data: dict[str, Any],
|
||||
lang: str = "en",
|
||||
headline: str = "",
|
||||
subdued_publications: bool = True, # slightly off-color presentation
|
||||
bulletpoints_show: bool = True,
|
||||
subdued_publications: bool = True, # slightly off-color presentation
|
||||
bulletpoints_show: bool = True, # display detailed bulletpoints per job
|
||||
):
|
||||
if "experience" not in data:
|
||||
return ""
|
||||
|
|
@ -32,7 +32,12 @@ def experience_to_md(
|
|||
md = f"{headline}\n\n"
|
||||
md += "\\definecolor{publication}{rgb}{0.5,0.5,0.5}\n\n"
|
||||
for exp in data["experience"]:
|
||||
md += f"## {exp['title'][lang]}\\hfill{exp['date'][lang]}\n\n"
|
||||
client = exp["client"][lang] if "client" in exp else ""
|
||||
title = exp["title"][lang] if "title" in exp else ""
|
||||
md += (
|
||||
# new python 3.12 f-string embedding niceness
|
||||
f"## {title}{f", {client}" if client else ""}\\hfill{exp['date'][lang]}\n\n"
|
||||
)
|
||||
|
||||
if "publication" in exp:
|
||||
md += _publication_md(exp["publication"][lang], subdued_publications)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue