1
0

vault backup: 2025-12-09 20:49:21
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m53s

This commit is contained in:
2025-12-09 20:49:21 +01:00
parent 434ce84982
commit f44058232c
66 changed files with 231 additions and 281 deletions

View File

@@ -166,16 +166,16 @@ def build():
write_json(output_dir / "index.json", tree)
# write quiz
quiz = []
for note in vault.get_notes_with_tag("provfråga"):
# assuming structure content/exams/YYYY-MM-DD/Note.md
exam_date = note.path.parent.parent.name
quiz.append({
"question": note.title,
"date": exam_date,
"number": note.path.name,
})
write_json(output_dir / "quiz.json", quiz)
# quiz = []
# for note in vault.get_notes_with_tag("provfråga"):
# # assuming structure content/exams/YYYY-MM-DD/Note.md
# exam_date = note.path.parent.parent.name
# quiz.append({
# "question": note.title,
# "date": exam_date,
# "number": note.path.name,
# })
# write_json(output_dir / "quiz.json", quiz)
# 3. Write out each note as html