mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-23 22:03:12 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user