fix(ingest): Add frontmatter missing warning to index-append.py
This commit is contained in:
parent
e8980b5526
commit
99806b8b3d
1 changed files with 4 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue