From e72e89c08a1596ca03369ee8461aeff31ec16f62 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matej=20Jane=C5=BEi=C4=8D?=
Date: Fri, 16 Oct 2026 16:34:46 +0000
Subject: [PATCH] fix(claude): split mixed lists and use local date in notes
---
claude/skills/notes/notes.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/claude/skills/notes/notes.py b/claude/skills/notes/notes.py
index 8adc88f..b857671 100755
--- a/claude/skills/notes/notes.py
+++ b/claude/skills/notes/notes.py
@@ -19,7 +19,7 @@ import html
import re
import subprocess
import sys
-from datetime import date
+from datetime import datetime
from pathlib import Path
from urllib.parse import quote
@@ -351,6 +351,9 @@ def markdown(text: str, site: Site, at: str) -> str:
lists.append((indent, tag))
else:
close_lists(indent)
+ # the other kind of list at the same indent ends this one and starts its own
+ if lists and lists[-1][0] == indent and lists[-1][1] != tag:
+ close_lists(indent - 1)
if lists and lists[-1][0] == indent:
out.append("")
else:
@@ -519,7 +522,7 @@ def write_index(notes: Path) -> None:
f"{e(project)} notes
",
(
f"{len(site.docs)} docs · {len(site.work)} in flight · "
- f"{len(site.questions)} open questions · generated {date.today()}
"
+ f"{len(site.questions)} open questions · generated {datetime.now().astimezone().date()}
"
),
"",
'',
@@ -628,7 +631,7 @@ def hub(projects: dict[str, Path]) -> str:
)
body = (
'
"
+ f"
{len(projects)} projects · generated {datetime.now().astimezone().date()}
"
+ (FILTER_BOX if rows else "")
+ '
Projects
'
+ (