-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpartners.html
72 lines (65 loc) · 2.57 KB
/
partners.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
nav: partners
title: "Partners"
---
{%- assign platinumPartners = '' | split: '' -%}
{%- assign standardPartners = '' | split: '' -%}
{%- for partner in site.partners -%}
{%- assign type = partner.type -%}
{%- if type == 'platinum' -%}
{%- assign platinumPartners = platinumPartners | push: partner -%}
{%- elsif type == 'standard' -%}
{%- assign standardPartners = standardPartners | push: partner -%}
{%- endif -%}
{%- endfor -%}
{%- assign platinumPartners = platinumPartners | sort: 'title' -%}
{%- assign standardPartners = standardPartners | sort: 'title' -%}
<h2>Our Partners</h2>
<p>TEDxWarwick would not be able to put on our regular events without the
continued support of our partners. If you are interested in partnering with
us, please get in touch at <a href="mailto:[email protected]">
[email protected]</a>, and a member of our Corporate Relations
team will help tailor a package to your needs.</p>
{% if platinumPartners.size > 0 -%}
<section id="platinum-partners">
<h3>Platinum Partner{% if platinumPartners.size > 1 %}2{% endif %}</h3>
{% for partner in platinumPartners -%}
<div class="partner-large">
{%- assign attrKeys = '' | split: '' -%}
{%- assign attrVals = '' | split: '' -%}
{%- assign attrKeys = attrKeys | push: 'class' -%}
{%- assign attrVals = attrVals | push: 'logo-inset' -%}
{%- assign attrKeys = attrKeys | push: 'title' -%}
{%- assign attrVals = attrVals | push: partner.title -%}
{%- assign img = 'partners/' | append: partner.slug | append: '/inset' -%}
{% include img.html
img=img
imgDefault='partners/default/logo'
alt=partner.title
attrKeys=attrKeys
attrVals=attrVals
%}
{{ partner.content | markdownify }}
</div>
{%- endfor %}
</section>
{%- endif %}
{% if standardPartners.size > 0 -%}
<section id="standard-partners">
<h4>Partners</h4>
<div class="partners">
{% for partner in standardPartners -%}
<a href="{{ partner.website | default: '#' }}" target="_blank" class="plain">
<div class="card partner-card" title="{{ partner.title }}">
{%- assign img = 'partners/' | append: partner.slug | append: '/card' -%}
{% include img.html
img=img
imgDefault='partners/default/card'
alt=partner.title
%}
</div>
</a>
{%- endfor %}
</div>
</section>
{%- endif %}