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