fix(ingest): Add frontmatter missing warning to index-append.py

This commit is contained in:
Matteo Cherubini 2026-06-05 09:59:18 +02:00
parent e8980b5526
commit 99806b8b3d

View file

@ -50,6 +50,10 @@ def main() -> int:
if fm_open and ln.startswith("last_updated:"):
lines[i] = f"last_updated: {today}"
if not fm_open:
print("index-append: warning: no frontmatter found, last_updated not bumped",
file=sys.stderr)
# 2. Locate the target section [start, end)
start = None
for i, ln in enumerate(lines):