Use sponsors extension

This commit is contained in:
Oliver Davies 2019-05-20 22:15:32 +01:00
parent eec0894c2b
commit 2df1b6180d

View file

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