-
Notifications
You must be signed in to change notification settings - Fork 5
/
sponsors.html
43 lines (41 loc) · 1.27 KB
/
sponsors.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
layout: default
title: Sponsors
permalink: /sponsors/
weight: 40
---
<section class="section">
<div class="container">
<h1 class="title">Our Sponsors</h1>
<h2 class="subtitle">A giant thanks to all of our sponsors!</h1>
{% for sponsors in site.data.sponsors %}
<h3 class="subtitle">{{sponsors.year}}</h3>
<div class="columns">
{% assign sortedSponsors = sponsors.sponsors | sort: 'name' %}
{% assign sponsorindex = 0 %}
{% for sponsor in sortedSponsors %}
{% if sponsorindex == 0 %}
</div>
<div class="columns ">
{% endif %}
{% if sponsor.reset %}
{% assign sponsorindex = 0 %}
{% else %}
{% assign sponsorindex = sponsorindex | plus:1 | modulo: 4%}
{% endif %}
<div class="column is-3">
<div class="sponsor-card">
<figure class="card-image">
{% if sponsor.sponsor_logo %}
<img class="is-centered" src="/images/sponsors/{{sponsor.sponsor_logo}}" alt="{{sponsor.name}}" />
{% else %}
<div class="sponsor-name-text{% if sponsor.name.size > 100 %} small{% endif %}">{{sponsor.name}}</div>
{% endif %}
</figure>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</section>