@@ -143,15 +143,21 @@ layout: default
143
143
</div>
144
144
</section >
145
145
146
+ {% assign platinum_sponsors = site.data.sponsors | where: "type", "platinum" %}
147
+ {% assign gold_sponsors = site.data.sponsors | where: "type", "gold" %}
148
+ {% assign silver_sponsors = site.data.sponsors | where: "type", "silver" %}
149
+ {% assign bronze_sponsors = site.data.sponsors | where: "type", "bronze" %}
150
+ {% assign inkind_sponsors = site.data.sponsors | where: "type", "inkind" %}
151
+ {% assign individual_sponsors = site.data.sponsors | where: "type", "individual" %}
146
152
<div id =" sponsors_index " >
147
153
<h2 class =" text-center title-text " >SPONSORS</h2 >
148
154
149
- {% if site.data.sponsor.platinum and site.data.sponsor.platinum.size != 0 %}
155
+ {% if platinum_sponsors != empty %}
150
156
<div class =" sponsors-container " >
151
157
<h3 class =" text-center caption " >Platinum Sponsor</h3 >
152
158
<div class =" sponsor-logo-container " >
153
159
<div id =" platinum-sponsors " >
154
- {% for sponsor in site.data.sponsor.platinum %}
160
+ {% for sponsor in platinum_sponsors %}
155
161
<a href =" {{ sponsor.link }} " target =" _blank " >
156
162
<img class =" sponsor-logo " src =" /img/{{ site.year }}/sponsor/{{ sponsor.logo }} " alt =" {{ sponsor.name }} " />
157
163
</a >
@@ -161,12 +167,12 @@ layout: default
161
167
</div >
162
168
{% endif %}
163
169
164
- {% if site.data.sponsor.gold and site.data.sponsor.gold.size != 0 %}
170
+ {% if gold_sponsors != empty %}
165
171
<div class =" sponsors-container " >
166
172
<h3 class =" text-center caption " >Gold Sponsor</h3 >
167
173
<div class =" sponsor-logo-container " >
168
174
<div id =" gold-sponsors " >
169
- {% for sponsor in site.data.sponsor.gold %}
175
+ {% for sponsor in gold_sponsors %}
170
176
<a href =" {{ sponsor.link }} " target =" _blank " >
171
177
<img class =" sponsor-logo " src =" /img/{{ site.year }}/sponsor/{{ sponsor.logo }} " alt =" {{ sponsor.name }} " />
172
178
</a >
@@ -176,12 +182,12 @@ layout: default
176
182
</div >
177
183
{% endif %}
178
184
179
- {% if site.data.sponsor.silver and site.data.sponsor.silver.size != 0 %}
185
+ {% if silver_sponsors != empty %}
180
186
<div class =" sponsors-container " >
181
187
<h3 class =" text-center caption " >Silver Sponsor</h3 >
182
188
<div class =" sponsor-logo-container " >
183
189
<div id =" silver-sponsors " >
184
- {% for sponsor in site.data.sponsor.silver %}
190
+ {% for sponsor in silver_sponsors %}
185
191
<a href =" {{ sponsor.link }} " target =" _blank " >
186
192
<img class =" sponsor-logo " src =" /img/{{ site.year }}/sponsor/{{ sponsor.logo }} " alt =" {{ sponsor.name }} " />
187
193
</a >
@@ -191,12 +197,12 @@ layout: default
191
197
</div >
192
198
{% endif %}
193
199
194
- {% if site.data.sponsor.bronze and site.data.sponsor.bronze.size != 0 %}
200
+ {% if bronze_sponsors != empty %}
195
201
<div class =" sponsors-container " >
196
202
<h3 class =" text-center caption " >Bronze Sponsor</h3 >
197
203
<div class =" sponsor-logo-container " >
198
204
<div id =" bronze-sponsors " >
199
- {% for sponsor in site.data.sponsor.bronze %}
205
+ {% for sponsor in bronze_sponsors %}
200
206
<a href =" {{ sponsor.link }} " target =" _blank " >
201
207
<img class =" sponsor-logo " src =" /img/{{ site.year }}/sponsor/{{ sponsor.logo }} " alt =" {{ sponsor.name }} " />
202
208
</a >
@@ -206,12 +212,12 @@ layout: default
206
212
</div >
207
213
{% endif %}
208
214
209
- {% if site.data.sponsor.in-kind and site.data.sponsor.in-kind.size != 0 %}
215
+ {% if inkind_sponsors != empty %}
210
216
<div class =" sponsors-container " >
211
217
<h3 class =" text-center caption " >In-kind Sponsor</h3 >
212
218
<div class =" sponsor-logo-container " >
213
219
<div id =" in-kind-sponsors " >
214
- {% for sponsor in site.data.sponsor.in-kind %}
220
+ {% for sponsor in inkind_sponsors %}
215
221
<div >
216
222
<a href =" {{ sponsor.link }} " target =" _blank " >
217
223
<img class =" sponsor-logo " src =" /img/{{ site.year }}/sponsor/{{ sponsor.logo }} " alt =" {{ sponsor.name }} " />
@@ -224,12 +230,12 @@ layout: default
224
230
</div >
225
231
{% endif %}
226
232
227
- {% if site.data.sponsor.individual and site.data.sponsor.individual.size != 0 %}
233
+ {% if individual_sponsors != empty %}
228
234
<div class =" sponsors-container " >
229
235
<h3 class =" text-center caption " >Individual Sponsor</h3 >
230
236
<div class =" sponsor-logo-container " >
231
237
<div id =" individual-sponsors " >
232
- {% for sponsor in site.data.sponsor.individual %}
238
+ {% for sponsor in individual_sponsors %}
233
239
<div class =" individual-sponsor-name " >
234
240
{% if sponsor.link %}
235
241
<a href =" {{ sponsor.link }} " target =' _blank ' rel =' noopener ' style =' text-decoration : underline ;' >
0 commit comments