Use getSponsors on sponsors page
This commit is contained in:
parent
fe105d76f7
commit
840d2b0af2
|
@ -8,11 +8,7 @@ title: Sponsors
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% for level in site.sponsorship_levels %}
|
{% for level in site.sponsorship_levels %}
|
||||||
{% set sponsors = [] %}
|
{% set sponsors = getSponsors(site.sponsors, level) %}
|
||||||
{% for sponsor in site.sponsors[level] if sponsor.confirmed %}
|
|
||||||
{% set sponsors = sponsors|merge([sponsor]) %}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% if sponsors %}
|
{% if sponsors %}
|
||||||
<section class="tw-block tw-mb-12">
|
<section class="tw-block tw-mb-12">
|
||||||
<h2 class="tw-mb-6">{{ level ~ ' Sponsors'|capitalize }}</h2>
|
<h2 class="tw-mb-6">{{ level ~ ' Sponsors'|capitalize }}</h2>
|
||||||
|
|
Loading…
Reference in a new issue