-
Notifications
You must be signed in to change notification settings - Fork 22
/
events.html
38 lines (36 loc) · 1.4 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
---
layout: default
title: "NHS Hack Day Events"
subtitle: "Details of our upcoming and previous events, teams and projects"
permalink: /events/
header_image: previous_img.jpg
image_credit:
- Credit: "David Rawaf"
URL: "https://secure.flickr.com/photos/124883688@N03/14080609070/in/album-72157644826703282/"
Licence: "CC BY-NC-SA"
---
{% include upcoming_events.html %}
<h2>Previous Events:</h2>
<ol class="past-events" reversed="reversed">
{% assign current_time = site.time | date: "%s" | to_integer%}
{% assign sorted = site.events | sort: 'date' | reverse %}
{% for post in sorted %}
{% assign start = post.date | date: "%s" | to_integer %}
{% assign month = post.date | date: "%B" %}
{% assign month_end = post.date_end | date: "%B" %}
{% unless start >= current_time %}
<li>
<h3><a href="{{ post.url }}">{{ post.title }}</a>
<time datetime="{{ post.date | date_to_xmlschema }}">
{% if month == month_end %}
{{ post.date | date: "%-d" }} — {{ post.date_end | date: "%-d %B %Y" }}
{% else %}
{{ post.date | date: "%-d %B" }} — {{ post.date_end | date: "%-d %B %Y" }}
{% endif %}
</time>
</h3>
<h4>Held at {{ post.venue }}, {{ post.city }} organised by {{ post.organiser | join: ', ' }}</h4>
</li>
{% endunless %}
{% endfor %}
</ol>