feat(website): add sponsors section parsed from README

Parse the # Sponsors heading in README.md into structured data and
render a dedicated sponsor band above the library index on the site.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen 2026-04-19 21:10:50 +08:00
parent 222f566aef
commit 774ab69bcd
No known key found for this signature in database
GPG key ID: B93DE4F003C33630
4 changed files with 222 additions and 2 deletions

View file

@ -65,6 +65,40 @@
</header>
{% endblock %}
{% block content %}
{% if sponsors %}
<section class="sponsor-band" aria-labelledby="sponsor-heading" data-reveal>
<div class="section-shell sponsor-shell">
<header class="sponsor-meta">
<p class="section-label" id="sponsor-heading">Sponsors</p>
<a
class="sponsor-become"
href="https://github.com/vinta/awesome-python/blob/master/SPONSORSHIP.md"
target="_blank"
rel="noopener"
>
Become a sponsor
<span class="sponsor-become-arrow" aria-hidden="true">&rarr;</span>
</a>
</header>
<ul class="sponsor-list">
{% for sponsor in sponsors %}
<li class="sponsor">
<a
class="sponsor-link"
href="{{ sponsor.url }}"
target="_blank"
rel="noopener"
>
<span class="sponsor-name">{{ sponsor.name }}</span>
</a>
<p class="sponsor-desc">{{ sponsor.description | safe }}</p>
</li>
{% endfor %}
</ul>
</div>
</section>
{% endif %}
<section class="results-section" id="library-index">
<div class="results-intro section-shell" data-reveal>
<div>