From 840d2b0af2aa32055027873e3d834b01f1cb133b Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 20 May 2019 22:17:45 +0100 Subject: [PATCH] Use getSponsors on sponsors page --- source/sponsors.html.twig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 }}