-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathevents.html
86 lines (82 loc) · 3.07 KB
/
events.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
---
layout: page
title: CI CoE Pilot - Events
permalink: /events/
---
<section id="intro">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12">
<div class="section-title">
<h2>Events</h2>
</div>
</div>
<p> </p>
{% if site.data.events.size > 0 %}
{% for n in site.data.events %}
{% if n.upcoming %}
<div class="col-md-6 col-sm-12">
<div class="event"
style="border-left: 0.4em solid {% if n.color %} #{{ n.color }} {% else %} #999 {% endif %}">
<div class="event-category">{{ n.category }}</div>
<div class="title">
<a href="{{ n.website }}" target="_blank"><h4>{{ n.title }}</h4></a>
</div>
<div class="content">
{{ n.date }}<br/>
<i class="icon ion-location"></i> {{ n.venue }}
<a href="{{ n.website }}" target="_blank"><i class="icon ion-link"></i> Website</a>
</div>
</div>
</div>
{% endif %}
{% endfor %}
{% endif %}
</div>
<div class="row" style="margin-top: 3em">
<div class="col-md-12 col-sm-12">
<div class="section-title">
<h3>Past Events</h3>
</div>
</div>
<p> </p>
{% if site.data.events.size > 0 %}
{% for n in site.data.events %}
{% unless n.upcoming %}
<div class="col-md-6 col-sm-12">
<div class="event"
style="border-left: 0.4em solid {% if n.color %} #{{ n.color }} {% else %} #999 {% endif %}">
<div class="event-category">{{ n.category }}</div>
<div class="title">
<a href="{{ n.website }}" target="_blank"><h4>{{ n.title }}</h4></a>
</div>
<div class="content">
{{ n.date }}<br/>
<i class="icon ion-location"></i> {{ n.venue }}
<a href="{{ n.website }}" target="_blank"><i class="icon ion-link"></i> Website</a>
</div>
</div>
</div>
{% endunless %}
{% endfor %}
{% endif %}
</div>
</div>
</section>
<script type="text/javascript">
var coll = document.getElementsByClassName("collapsible");
var i;
for (i = 0; i < coll.length; i++) {
coll[i].addEventListener("click", function () {
this.classList.toggle("active");
var content = this.nextElementSibling;
if (content.style.display === "block") {
content.style.display = "none";
} else {
content.style.display = "block";
}
});
}
</script>