mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-08 02:15:12 -06:00
refactor(website): move the sponsor band into a template partial
The sponsor band markup lived inline in index.html, so another page could show it only by copying the markup. The rendered homepage is byte-identical. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
{% 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="/sponsorship/"> Become a sponsor </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 %}
|
||||
@@ -70,31 +70,7 @@
|
||||
</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="/sponsorship/"> Become a sponsor </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 %}
|
||||
{% include "_sponsor_band.html" %}
|
||||
|
||||
<section class="results-section" id="library-index">
|
||||
<div class="results-intro section-shell" data-reveal>
|
||||
|
||||
Reference in New Issue
Block a user