-
Notifications
You must be signed in to change notification settings - Fork 2
/
events.html
90 lines (68 loc) · 2.03 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
87
88
89
90
---
title: "highlights & events"
container: true
---
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %}
{% assign events = site.events | sort: 'date' | reverse %}
<div id="events" class="row page">
<div class="col col-md-3">
<h2>Upcoming Events</h2>
{% for event in events reversed %}
{% capture posttime %}{{ event.date | date: '%s'}}{% endcapture %}
{% if posttime > nowunix %}
<div class="event">
<a href="#evt_{{ event.title | slugify }}" class="evt-internal-lnk">{{ event.title }}</a>
<span class="info">
{% if event.fulldate %}
{{ event.fulldate }}
{% else %}
{{ event.date | date : "%d.%m.%Y" }}
{% endif %}
</span>
</div>
{% endif %}
{% endfor %}
<h2>Past Events</h2>
{% for event in events %}
{% capture posttime %}{{ event.date | date: '%s'}}{% endcapture %}
{% if posttime < nowunix %}
<div class="event small">
<a href="#evt_{{ event.title | slugify }}" class="evt-internal-lnk">{{ event.title }}</a>
<span class="info">
{% if event.fulldate %}
{{ event.fulldate }}
{% else %}
{{ event.date | date : "%d.%m.%Y" }}
{% endif %}
</span>
</div>
{% endif %}
{% endfor %}
</div>
<div id="highlights" class="col col-md-9">
<h2>highlights & Events</h2>
{% for event in events %}
{% capture posttime %}{{ event.date | date: '%s'}}{% endcapture %}
{% assign content = event.content | strip_newlines %}
{% if content != "" %}
<div class="event" id="evt_{{ event.title | slugify }}">
<h3>
{% if posttime > nowunix %}<span class="badge badge-info">coming</span>{% endif %}
{{ event.title }}
<span class="info">
{{ event.location }} /
{% if event.fulldate %}
{{ event.fulldate }}
{% else %}
{{ event.date | date : "%d.%m.%Y" }}
{% endif %}
</span>
</h3>
<div class="description">
{{ event.content }}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>