-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathonline.html
27 lines (26 loc) · 911 Bytes
/
online.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
---
layout: default
title: Online
---
<ul class="conference-list list-unstyled">
{% assign sorted_conferences = site.conferences | sort: 'date_start' %}
{% assign today = site.time | date: "%s" %}
{% for conference in sorted_conferences %}
{% assign date_end = conference.date_end | date: "%s" %}
{% if today < date_end and conference.online %}
<li id='{{ forloop.index }}'>
{{ conference.date_start | date: "%Y-%m-%d" }}
<a class="post-link" href="{{ conference.website }}">{{ conference.name }}</a>
{% if conference.location %}
<small>{{ conference.location }}</small>
{% endif %}
<script>
document.write('<span class="label label-primary">Online event</span>');
{% if conference.status %}
document.write('<span class="label label-danger">{{ conference.status }}</span>');
{% endif %}
</script>
</li>
{% endif %}
{% endfor %}
</ul>