Use sponsors extension
This commit is contained in:
parent
eec0894c2b
commit
2df1b6180d
|
@ -3,12 +3,8 @@
|
|||
Our <span class="tw-text-green-600">Sponsors</span>
|
||||
</h2>
|
||||
|
||||
{% for level in site.sponsorship_levels %}
|
||||
{% set sponsors = [] %}
|
||||
{% for sponsor in site.sponsors[level] if sponsor.confirmed %}
|
||||
{% set sponsors = sponsors|merge([sponsor]) %}
|
||||
{% endfor %}
|
||||
|
||||
{% for level in sponsorshipLevels %}
|
||||
{% set sponsors = getSponsors(sponsorData, level) %}
|
||||
{% if sponsors %}
|
||||
<section class="tw-block">
|
||||
<h3 class="tw-visuallyhidden">{{ level|capitalize }} Sponsors</h2>
|
||||
|
|
Loading…
Reference in a new issue