mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-08 02:15:12 -06:00
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:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user