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