add name for html template and browser title
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-02-09 13:29:50 -07:00
parent 8f8f09cecf
commit 46c1f367fe
+2 -1
View File
@@ -9,6 +9,7 @@ j2_env = Environment(loader=FileSystemLoader("templates"))
srcdir = Path("markdown") srcdir = Path("markdown")
destdir = Path("publish") destdir = Path("publish")
name = "Eric W Phillips - Resume"
def main(): def main():
@@ -42,7 +43,7 @@ def main():
# html -> resume.template # html -> resume.template
print("processing rawhtml through resume.template") print("processing rawhtml through resume.template")
template = j2_env.get_template("resume.template") template = j2_env.get_template("resume.template")
pdfhtml = template.render(content=rawhtml, download="") pdfhtml = template.render(name=name, content=rawhtml, download="")
print(f"processing html to '{outfilepdf}'") print(f"processing html to '{outfilepdf}'")
htmltopdf(pdfhtml, outfilepdf) htmltopdf(pdfhtml, outfilepdf)