forked from mauroservienti/milestone.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
events_archive.html
42 lines (39 loc) · 1.4 KB
/
events_archive.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
---
layout: page
id: 'archived-events'
permalink: /archive/events/
title: Events archive
---
<div class="events-archive">
{% assign archived = site.events | where: 'status', 'done' | sort: 'calendar.start' | reverse %}
<h3 class="page-heading">Events archive</h3>
<ul>
{% for event in archived %}
<div class="panel event panel-default">
<div class="panel-body">
<div class="event-details">
<img class="event-details-icon" src="/img/calendar.png" />
<span class="event-date">
{% if event.calendar.display %}
{{ event.calendar.display }}
{% else %}
{% if event.calendar.start contains "T" %}
{{ event.calendar.start | date_to_rfc822 | date: "%B %-d, %Y - %H:%M" }}
{% else %}
{{ event.calendar.start | date_to_rfc822 | date: "%B %-d, %Y" }}
{% endif %}
{% endif %}
</span>
<img class="event-details-icon" src="/img/location.png" />
<span class="event-location">{{ event.location }}</span>
<img class="event-details-icon" src="/img/language.png" />
<span class="event-language">{{ event.language }}</span>
</div>
<h3>
<a class="muted-link" href="{{ event.url | prepend: site.baseurl }}">{{ event.title }}</a>
</h3>
</div>
</div>
{% endfor %}
</ul>
</div>