diff --git a/source/sponsors.html.twig b/source/sponsors.html.twig index faf5a89..ba2efb8 100644 --- a/source/sponsors.html.twig +++ b/source/sponsors.html.twig @@ -8,11 +8,7 @@ title: Sponsors {% 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 %}

{{ level ~ ' Sponsors'|capitalize }}