forked from AndroidStudyGroup/conferences
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathonline.html
22 lines (21 loc) · 776 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
---
layout: default
title: Online only
---
<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 and conference.status == null %}
<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 %}
<span class="label label-primary">Online-only event</span>
</li>
{%- endif -%}
{%- endfor -%}
</ul>