feat: add build date to footer

Displays the UTC date the site was last built in the footer so visitors
can see how fresh the data is.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen 2026-03-22 15:30:04 +08:00
parent 97f18d295f
commit d3070b735e
No known key found for this signature in database
GPG key ID: B93DE4F003C33630
3 changed files with 17 additions and 1 deletions

View file

@ -4,6 +4,7 @@
import json
import re
import shutil
from datetime import datetime, timezone
from pathlib import Path
from typing import TypedDict
@ -191,6 +192,7 @@ def build(repo_root: str) -> None:
entries=entries,
total_entries=total_entries,
total_categories=len(categories),
build_date=datetime.now(timezone.utc).strftime("%B %d, %Y"),
),
encoding="utf-8",
)