@@ -116,12 +116,11 @@ <h2 class="upcoming__event-label">Sponsors</h2>
116
116
</ div >
117
117
</ div >
118
118
< div class ="row ">
119
- < div class ="upcoming__event-title col-12 ">
119
+ < div class ="upcoming__sponsor-col col-12 ">
120
120
{% assign site_sponsors_all = "" | split: ',' %}
121
121
{% for sponsor in site.sponsors %}
122
- {% assign site_sponsors_all = site_sponsors_all | push: sponsor %}
122
+ {% assign site_sponsors_all = site_sponsors_all | push: sponsor %}
123
123
{% endfor %}
124
-
125
124
<!--Build an array of sponsors for the event.-->
126
125
{% assign event_sponsors = "" | split: ',' %}
127
126
{% for sponsor in post.sponsors %}
@@ -131,39 +130,11 @@ <h2 class="upcoming__event-label">Sponsors</h2>
131
130
{% endif %}
132
131
{% endfor %}
133
132
{% endfor %}
134
-
135
- {% assign num_of_sponsors = event_sponsors | size %}
136
- {% assign sponsors_remainder = num_of_sponsors | modulo: 2 %}
137
-
138
- {% if sponsors_remainder == 0 %}
139
- {% assign num_of_sponsors_even = true %}
140
- {% assign row_num_modifier = 1 %}
141
- {% else %}
142
- {% assign num_of_sponsors_even = false %}
143
- {% assign row_num_modifier = 0 %}
144
- {% endif %}
145
-
146
- {% assign num_of_rows = num_of_sponsors | divided_by: 2 | floor | minus: row_num_modifier %}
147
- {% assign items_per_row = 1 %}
148
-
149
- {% for row in (0..num_of_rows) %}
150
- {% if forloop.last and num_of_sponsors_even == false %}
151
- {% assign items_per_row = 0 %}
152
- {% endif %}
153
- < div class ="row ">
154
- {% for col in (0..items_per_row) %}
155
- {% assign sponsor_index = row | times: 2 | plus: col %}
156
- {% assign sponsor = event_sponsors[sponsor_index] %}
157
- < div class ="footer__sponsor-col col-md-12 col-lg-6 ">
158
- < a class ="footer__sponsor-link " href ="{{ sponsor.sponsor_link }} ">
159
- < img class ="footer__img "
160
- src ="{{ site.baseurl }}/{{ sponsor.sponsor_logo }} "
161
- alt ="Sponsor logo ">
162
- </ a >
163
- </ div >
164
- {% endfor %}
165
- </ div >
166
- {% endfor %}
133
+ {%
134
+ include row_display_outer_loop.html
135
+ items_array = event_sponsors
136
+ inner_layout = "sponsors_inner_layout.html"
137
+ %}
167
138
</ div >
168
139
</ div >
169
140
</ div >
@@ -188,7 +159,7 @@ <h2 class="upcoming__event-label">Sponsors</h2>
188
159
{% endif %}
189
160
190
161
<!--Events in the past section-->
191
- {% include event .html %}
162
+ {% include recent_events_section .html %}
192
163
193
164
<!--Services section-->
194
165
< section class ="services ">
0 commit comments