-
Notifications
You must be signed in to change notification settings - Fork 1
/
events.html
55 lines (53 loc) · 2.43 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
---
layout: page
title: Events
include_in_header: true
---
<div class="download-callout">
<p><i>Are you performing with us in an upcoming event and looking for the necessary software?</i> We've retired the Max-based standalone. Now it's a web app!</p>
<p>
<a class="primary-btn" href="{{ 'https://lute.luc.edu/InC' | absolute_url }}">Try it out in your browser!</a>
</p>
</div>
<div class="event-list">
{% assign upcoming_events = site.data.events | where_exp: 'event', 'event.date > site.time' | sort: 'date' | reverse %}
{% if upcoming_events != empty %}
<h2>Upcoming Events</h2>
{% for event in upcoming_events %}
<div class="event">
<h3>{{ event.title }}</h3>
<div class="event-info">
<span class="fa fa-calendar"></span>
<span class="event-row">{{ event.date | date: "%-d %B %Y @ %I:%M%P" }}</span>
<span class="fa fa-map-marker"></span>
<span class="event-row">{{ event.location }}</span>
<span class="fa fa-info-circle"></span>
<input type="checkbox" class="read-more" id="event-read-{{ forloop.index }}" hidden>
<span class="event-row excerpt">{{ event.description | truncatewords: 25 | markdownify }}</span>
<span class="event-row desc">{{ event.description | markdownify }}</span>
<span></span><label for="event-read-{{ forloop.index }}">Read</label>
</div>
</div>
{% endfor %}
{% else %}
<span>To Be Announced...</span>
{% endif %}
{% assign past_events = site.data.events | where_exp: 'event', 'event.date < site.time' | sort: 'date' | reverse %}
<h2>Past Events</h2>
{% for event in past_events %}
<div class="event">
<h3>{{ event.title }}</h3>
<div class="event-info">
<span class="fa fa-calendar"></span>
<span class="event-row">{{ event.date | date: "%-d %B %Y @ %I:%M%P" }}</span>
<span class="fa fa-map-marker"></span>
<span class="event-row">{{ event.location }}</span>
<span class="fa fa-info-circle"></span>
<input type="checkbox" class="read-more" id="event-read-{{ forloop.index }}" hidden>
<span class="event-row excerpt">{{ event.description | truncatewords: 25 | markdownify }}</span>
<span class="event-row desc">{{ event.description | markdownify }}</span>
<span></span><label for="event-read-{{ forloop.index }}">Read</label>
</div>
</div>
{% endfor %}
</div>