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