mirror of
https://github.com/vinta/awesome-python.git
synced 2026-05-22 03:42:20 +08:00
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:
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user