fix(website): trim sponsorship page nav and hero stats

Remove the 'All projects' nav link and total_entries hero stat from the
sponsorship page. Rename 'View the repository' CTA to 'View on GitHub'.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-05-03 11:45:07 +08:00
parent ee01a0bade
commit 38b54caabb
2 changed files with 1 additions and 3 deletions

View File

@@ -437,7 +437,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"{total_entries}+ curated projects")
hero_stats.append(f"Updated {build_date.strftime('%B %d, %Y')}")
(sponsorship_dir / "index.html").write_text(
tpl_sponsorship.render(hero_stats=hero_stats),

View File

@@ -12,7 +12,6 @@
<nav class="hero-topbar category-topbar" aria-label="Site">
<a href="/" class="hero-brand-mini">Awesome Python</a>
<div class="hero-topbar-actions">
<a href="/#library-index" class="hero-topbar-link">All projects</a>
<a
href="https://github.com/vinta/awesome-python/blob/master/CONTRIBUTING.md"
class="hero-topbar-link hero-topbar-link-strong"
@@ -50,7 +49,7 @@
class="hero-action hero-action-secondary"
target="_blank"
rel="noopener"
>View the repository</a
>View on GitHub</a
>
</div>
</div>