-
Notifications
You must be signed in to change notification settings - Fork 249
/
past.json
32 lines (32 loc) · 1.07 KB
/
past.json
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
---
layout: none
---
[
{%- assign sorted_conferences = site.conferences | sort: 'date_start' | reverse -%}
{%- assign today = site.time | date: "%s" -%}
{%- for conference in sorted_conferences -%}
{%- assign date_end = conference.date_end | date: "%s" -%}
{%- if today >= date_end %}
{
"name": "{{ conference.name }}",
"website": "{{ conference.website }}",
"location": "{{ conference.location }}",
{%- if conference.status %}
"status": "{{ conference.status }}",
{%- endif -%}
{%- if conference.online %}
"online": true,
{%- endif %}
"dateStart": "{{ conference.date_start | date: "%Y-%m-%d" }}",
"dateEnd": "{{ conference.date_end | date: "%Y-%m-%d" }}"
{%- if conference.cfp.start -%},
"cfp": {
"start": "{{ conference.cfp.start | date: "%Y-%m-%d" }}",
"end": "{{ conference.cfp.end | date: "%Y-%m-%d" }}",
"site": "{% if conference.cfp.site %}{{ conference.cfp.site }}{% else %}{{ conference.website }}{% endif %}"
}
{%- endif %}
}{% unless forloop.last %}, {% endunless %}
{%- endif -%}
{%- endfor %}
]