From 11b72122c5fe8c952dc40ac6bde20cfb9ea8f0c8 Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Wed, 21 Oct 2026 20:21:39 +0800 Subject: [PATCH] feat: drop the build date stat from the hero stats lines The hero "Updated on" stat only restated when the site was last built. Co-Authored-By: Claude --- website/build.py | 2 -- website/static/style.css | 2 +- website/templates/index.html | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/website/build.py b/website/build.py index 9ab5e472..1697e6e5 100755 --- a/website/build.py +++ b/website/build.py @@ -833,7 +833,6 @@ def build(repo_root: Path) -> None: total_entries=total_entries, total_categories=len(categories), repo_stars=repo_stars, - build_date=build_date.date().isoformat(), sponsors=sponsors, category_urls=category_urls, filter_urls=filter_urls, @@ -937,7 +936,6 @@ def build(repo_root: Path) -> None: hero_stats: list[str] = [] if repo_stars: hero_stats.append(f"{repo_stars}+ stars on GitHub") - hero_stats.append(f"Updated on {build_date.date().isoformat()}") (sponsorship_dir / "index.html").write_text( tpl_sponsorship.render( hero_stats=hero_stats, diff --git a/website/static/style.css b/website/static/style.css index 8d9de77f..50409547 100644 --- a/website/static/style.css +++ b/website/static/style.css @@ -326,7 +326,7 @@ kbd { letter-spacing: 0.02em; } -/* Keeps a stat whole, so the date never breaks at its hyphens */ +/* Keeps each stat whole when the line wraps */ .proof-stat { white-space: nowrap; } diff --git a/website/templates/index.html b/website/templates/index.html index b1dd5bd7..73c35419 100644 --- a/website/templates/index.html +++ b/website/templates/index.html @@ -27,8 +27,7 @@

Awesome Python

{{ subtitle }}

- {% if repo_stars %}{{ repo_stars }}+ stars on GitHub{% endif %} {% if repo_stars and build_date %}/{% endif %} {% if build_date %}Updated on {{ build_date }}{% endif %} {% if repo_stars or - build_date %}/{% endif %} Maintained by + {% if repo_stars %}{{ repo_stars }}+ stars on GitHub /{% endif %} Maintained by @vinta and @JinyangWang27