Use getSponsors on sponsors page

This commit is contained in:
Oliver Davies 2019-05-20 22:17:45 +01:00
parent fe105d76f7
commit 840d2b0af2

View file

@ -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>