-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
137 lines (135 loc) · 4.98 KB
/
index.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
layout: default
navigation:
- title: Home
link: "#home"
- title: Upcoming
link: "#upcoming"
- title: Previous
link: "#previous"
- title: Team
link: "#team"
---
<div class="home" id="home">
<!-- Mission -->
<div class="home-section hero-background">
<div class="width-wrapper centered">
<div class="page-heading">{{ site.title }}</div>
<div class="page-subheading">You. We. Us.</div>
{{ site.description }}
</div>
</div>
<!-- /Mission -->
<!-- Upcoming -->
<div class="home-section dark-background" id="upcoming">
<div class="home-section-inner">
<h1 class="section-heading">Upcoming workshops</h1>
<div class="container-fluid">
{% assign upcoming_workshops = (site.upcoming | sort: 'date') %}
{% for upcoming_workshop in upcoming_workshops %}
{% if modulo == '0' or forloop.first %}
<div class="row">
{% endif %}
<div class="col-md-6">
<div class="workshop-type-card">
<div class="feature">
<a class="post-link" href="{{ upcoming_workshop.url | prepend: site.baseurl }}"></a>
{% assign workshop_type = ((site.data.workshop_types | where:"type", upcoming_workshop.type) | first) %}
{% assign image_url = (workshop_type.default_image) %}
<img src="{{ image_url | prepend: site.baseurl }}">
<div>
<div class="title">
{{ workshop_type.title }}
</div>
<div class="description">
{{ upcoming_workshop.location }},
{% if upcoming_workshop.date != null %}
{{ upcoming_workshop.date | date_to_long_string }}
{% else %}
date to be announced
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% if modulo == '1' or forloop.last %}
</div> <!-- /Row -->
{% endif %}
{% endfor %}
</div>
</div>
</div>
<!-- /Upcoming -->
<!-- Previous -->
<div class="home-section light-background" id="previous">
<div class="home-section-inner">
<h1 class="section-heading">Past workshops</h1>
<div class="container-fluid">
{% assign past_workshops = (site.past | sort: 'date') %}
{% for past_workshop in past_workshops reversed %}
{% capture modulo %}{{ forloop.index0 | modulo:2 }}{% endcapture %}
{% if modulo == '0' or forloop.first %}
<div class="row">
{% endif %}
<div class="col-md-6">
<div class="workshop-type-card">
<div class="feature">
<a class="post-link" href="{{ past_workshop.url | prepend: site.baseurl }}"></a>
{% assign workshop_type = ((site.data.workshop_types | where:"type", past_workshop.type) | first) %}
{% assign image_url = (past_workshop.thumbnail_path) %}
<img src="{{ image_url | prepend: site.baseurl }}">
<div>
<div class="title">
{{ workshop_type.title }}
</div>
<div class="description">
{{ past_workshop.location }}, {{ past_workshop.date | date_to_long_string }}
</div>
</div>
</div>
</div>
</div>
{% if modulo == '1' or forloop.last %}
</div> <!-- /Row -->
{% endif %}
{% endfor %}
</div>
</div>
</div>
<!-- /Previous -->
<!-- Team -->
<div class="home-section dark-background" id="team">
<div class="home-section-inner">
<h1 class="section-heading">The Team</h1>
<div class="container-fluid">
{% for member in site.data.team %}
{% capture modulo %}{{ forloop.index0 | modulo:2 }}{% endcapture %}
{% if modulo == '0' or forloop.first %}
<div class="row">
{% endif %}
<div class="col-md-6 team_person">
<div class="team_member_card">
<img class="img-circle" src="{{ member.image | prepend: site.baseurl }}">
<div class="name">
{{ member.name }}
</div>
<div class="contact">
<a href="https://www.github.com/{{ member.github }}">
<i class="fa fa-github fa-2x"></i>
</a>
<a href="https://www.twitter.com/{{ member.twitter }}">
<i class="fa fa-twitter fa-2x"></i>
</a>
</div>
</div>
</div>
{% if modulo == '1' or forloop.last %}
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
<!-- /Team -->
</div>