forked from ymichael/hackerschool
-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
72 lines (71 loc) · 2.46 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
---
layout: default
---
<section id='mainbanner' class='banner'></section>
<section class='centered'>
<div class='upcoming'>
{% if site.data.postpone %}
<h2>{{ site.data.postpone.reason }} Postponement Notice</h2>
<p>Due to the current {{ site.data.postpone.reason }} situation, <strong>all Hackerschool workshops are currently postponed</strong>.
We will update the site and our social media channels again when we eventually do resume workshops.</p>
{% else %}
<h2>Upcoming Events</h2>
{% if site.data.upcoming_events %}
<ul class='events'>
{% for event in site.data.upcoming_events %}
<li class='event'>
<div class='info'>
<h3>{{ event.title }}</h3>
<div class='row'>
<span class='label'>When:</span>
<span>{{ event.datetime }}</span>
</div>
<div class='row'>
<span class='label'>Where:</span>
<span>{{ event.location }}</span>
</div>
{% if event.audience %}
<div class='row'>
<span class='label'>Who:</span>
<span>{{ event.audience }}</span>
</div>
{% endif %}
{% if event.prereq -%}
<div class='row'>
<span class='label'>Pre-requisites:</span>
<span>{{ event.prereq }}</span>
</div>
{%- endif %}
<div class='row' style='margin-top: 1rem;'>{{ event.description|safe }}</div>
<div class='row'>{{ event.materials|safe }}</div>
</div>
<img src='{{ event.image }}'/>
</li>
{% endfor %}
</ul>
{% else %}
<h3>Coming soon!</h3>
{% endif %}
{% endif %}
</div>
<div class='past'>
<h2>Past Events</h2>
{% if site.data.past_events %}
<ul class='events'>
{% for event in site.data.past_events %}
<li class='event'>
<img src='{{ event.image }}'/>
<div class='info'>
<h3>{{ event.title }}</h3>
<div class='row'>
<span class='label'>When:</span>
<span>{{ event.datetime }}</span>
</div>
<div class='row'>{{ event.materials|safe }}</div>
</div>
</li>
{% endfor %}
{% endif %}
</ul>
</div>
</section>