1
0

vault backup: 2025-12-06 16:57:57
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m44s

This commit is contained in:
2025-12-06 16:57:57 +01:00
parent b6e8a73fff
commit 7d7b2b147b
4 changed files with 228 additions and 17 deletions

View File

@@ -41,6 +41,13 @@ env.filters["markdown"] = m.convert
output = root_dir / "test.html"
template = env.get_template("base.html")
def out_content(self):
content = note.content
if content.startswith("---\n"):
content = content.split("---\n", 2)[2]
return content
note.__class__.our_content = property(out_content)
with output.open("w", encoding="utf-8") as f:
data = template.render(note=note, vault=vault)
f.write(data)