style: highlight Sponsorship in the topbar instead of Submit a project

The navbar gave Submit a project the highlighted style that marks the main call to action.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-10-27 20:56:58 +08:00
co-authored by Claude
parent a348248251
commit b91f2ab950
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -10,11 +10,11 @@
{% endif %}
<a
href="https://github.com/vinta/awesome-python/blob/master/CONTRIBUTING.md"
class="hero-topbar-link hero-topbar-link-strong"
class="hero-topbar-link"
target="_blank"
rel="noopener"
>Submit a project</a
>
<a href="/sponsorship/" class="hero-topbar-link">Sponsorship</a>
<a href="/sponsorship/" class="hero-topbar-link hero-topbar-link-strong">Sponsorship</a>
</div>
</nav>
+3 -3
View File
@@ -331,7 +331,7 @@ class TestBuild:
assert parser.links_by_rel["canonical"] == "https://awesome-python.com/categories/widgets/"
assert parser.meta_by_property["og:url"] == "https://awesome-python.com/categories/widgets/"
assert '<link rel="alternate" type="text/plain" href="/llms.txt" title="LLMs text entry point" />' not in category_html
assert '<a href="/sponsorship/" class="hero-topbar-link">Sponsorship</a>' in category_html
assert '<a href="/sponsorship/" class="hero-topbar-link hero-topbar-link-strong">Sponsorship</a>' in category_html
assert "<h1>Widgets</h1>" in category_html
assert 'Widget libraries. Also see <a href="https://example.com/widgets" target="_blank" rel="noopener">awesome-widgets</a>.' in category_html
assert 'href="https://example.com/w1"' in category_html
@@ -669,7 +669,7 @@ class TestBuild:
assert parser.meta_by_name["twitter:description"] == expected_description
assert parser.meta_by_name["twitter:image"] == expected_image
assert "<head>\n <meta charset" in html
assert '<a href="/sponsorship/" class="hero-topbar-link">Sponsorship</a>' in html
assert '<a href="/sponsorship/" class="hero-topbar-link hero-topbar-link-strong">Sponsorship</a>' in html
assert 'id="hero-category-heading">Browse by category</h2>' in html
assert 'class="hero-category-link" href="/categories/ai-and-agents/"' in html
@@ -1014,7 +1014,7 @@ class TestBuild:
"Sponsorship for Awesome Python: tiers, audience, and how to get your product in front of professional Python developers evaluating tools for production use."
)
assert parser.links_by_rel["canonical"] == "https://awesome-python.com/sponsorship/"
assert '<a href="/sponsorship/" class="hero-topbar-link">Sponsorship</a>' in html
assert '<a href="/sponsorship/" class="hero-topbar-link hero-topbar-link-strong">Sponsorship</a>' in html
marker = '<script type="application/ld+json">'
start = html.index(marker) + len(marker)