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 <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-10-21 20:21:48 +08:00
co-authored by Claude
parent 28b03ce6b7
commit 11b72122c5
3 changed files with 2 additions and 5 deletions
-2
View File
@@ -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,
+1 -1
View File
@@ -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;
}
+1 -2
View File
@@ -27,8 +27,7 @@
<h1>Awesome Python</h1>
<p class="hero-sub">{{ subtitle }}</p>
<p class="hero-proof">
{% if repo_stars %}<span class="proof-stat">{{ repo_stars }}+ stars on GitHub</span>{% endif %} {% if repo_stars and build_date %}<span class="proof-sep">/</span>{% endif %} {% if build_date %}<span class="proof-stat">Updated on {{ build_date }}</span>{% endif %} {% if repo_stars or
build_date %}<span class="proof-sep">/</span>{% endif %} <span class="proof-stat">Maintained by
{% if repo_stars %}<span class="proof-stat">{{ repo_stars }}+ stars on GitHub</span> <span class="proof-sep">/</span>{% endif %} <span class="proof-stat">Maintained by
<a href="https://github.com/vinta" target="_blank" rel="noopener">@vinta</a>
and
<a href="https://github.com/JinyangWang27" target="_blank" rel="noopener">@JinyangWang27</a></span>