mirror of
https://github.com/vinta/awesome-python.git
synced 2026-08-31 17:32:31 +00:00
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:
parent
222f566aef
commit
774ab69bcd
4 changed files with 222 additions and 2 deletions
|
|
@ -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">→</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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue