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