vault backup: 2025-12-06 16:57:57
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m44s
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m44s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user