feat(website): add social proof line to hero with star count and build date

Display the awesome-python repo's star count (formatted as '230k+') and
the last data refresh date below the hero CTA. Fetches the self-repo
star count by always including vinta/awesome-python in the stars fetch.
Also removes the footer date stamp, which is now surfaced in the hero.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-03-23 01:56:15 +08:00
parent 25a3f4d903
commit f27b7c80fb
7 changed files with 51 additions and 13 deletions

View File

@@ -55,7 +55,6 @@
<footer class="footer">
<div class="footer-left">
<span class="footer-brand">Awesome Python</span>
{% if build_date %}<span class="footer-date">Data refreshed {{ build_date }}</span>{% endif %}
</div>
<div class="footer-links">
<span

View File

@@ -47,6 +47,14 @@
>View on GitHub</a
>
</div>
{% if repo_stars or build_date %}
<p class="hero-proof">
{% if repo_stars %}{{ repo_stars }}+ stars on GitHub{% endif %}
{% if repo_stars and build_date %}/{% endif %}
{% if build_date %}Updated {{ build_date }}{% endif %}
</p>
{% endif %}
</div>
</div>
</div>