mirror of
https://github.com/vinta/awesome-python.git
synced 2026-05-09 22:53:49 +08:00
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:
@@ -437,7 +437,6 @@ def build(repo_root: Path) -> None:
|
|||||||
hero_stats: list[str] = []
|
hero_stats: list[str] = []
|
||||||
if repo_stars:
|
if repo_stars:
|
||||||
hero_stats.append(f"{repo_stars}+ stars on GitHub")
|
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')}")
|
hero_stats.append(f"Updated {build_date.strftime('%B %d, %Y')}")
|
||||||
(sponsorship_dir / "index.html").write_text(
|
(sponsorship_dir / "index.html").write_text(
|
||||||
tpl_sponsorship.render(hero_stats=hero_stats),
|
tpl_sponsorship.render(hero_stats=hero_stats),
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
<nav class="hero-topbar category-topbar" aria-label="Site">
|
<nav class="hero-topbar category-topbar" aria-label="Site">
|
||||||
<a href="/" class="hero-brand-mini">Awesome Python</a>
|
<a href="/" class="hero-brand-mini">Awesome Python</a>
|
||||||
<div class="hero-topbar-actions">
|
<div class="hero-topbar-actions">
|
||||||
<a href="/#library-index" class="hero-topbar-link">All projects</a>
|
|
||||||
<a
|
<a
|
||||||
href="https://github.com/vinta/awesome-python/blob/master/CONTRIBUTING.md"
|
href="https://github.com/vinta/awesome-python/blob/master/CONTRIBUTING.md"
|
||||||
class="hero-topbar-link hero-topbar-link-strong"
|
class="hero-topbar-link hero-topbar-link-strong"
|
||||||
@@ -50,7 +49,7 @@
|
|||||||
class="hero-action hero-action-secondary"
|
class="hero-action hero-action-secondary"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener"
|
rel="noopener"
|
||||||
>View the repository</a
|
>View on GitHub</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user