-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
50 lines (49 loc) · 1.96 KB
/
index.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
43
44
45
46
47
48
49
50
---
layout: default
---
<ul class="conference-list list-unstyled">
{% assign sorted_conferences = (site.conferences | sort: 'date_start') %}
{% assign today = ((site.time | date: "%Y-%m-%d" ) | date: "%s" ) %}
{% for conference in sorted_conferences %}
{% assign date_end = (conference.date_end | date: "%s") %}
{% if today <= date_end %}
<li>
{{ 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 %}
{% assign cfp_start = (conference.cfp_start | date: "%s") %}
{% assign cfp_end = (conference.cfp_end | date: "%s") %}
{% if today >= cfp_start && today >= cfp_end %}
<a href="{% if conference.cfp_site %}{{ conference.cfp_site }}{% else %}{{ conference.website }}{% endif %}"><span class="label label-success">Recibiendo propuestas para charlas</span></a>
{% endif %}
{% assign date_start = (conference.date_start | date: "%s") %}
{% if today >= date_start && today >= date_end %}
<span class="label label-danger">Hoy</span>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
</br>
<b> Charlas previas </b>
<ul class="conference-list list-unstyled">
{% assign sorted_conferences = (site.conferences | sort: 'date_start') %}
{% assign today = ((site.time | date: "%Y-%m-%d" ) | date: "%s" ) %}
{% for conference in sorted_conferences %}
{% assign date_end = (conference.date_end | date: "%s") %}
{% if today > date_end %}
<li>
{{ conference.date_start | date: "%Y-%m-%d" }}
<a class="post-link" href="{{ conference.website }}">{{ conference.name }}</a>
{%if conference.video != null%}
[<a href="{{ conference.video }}">Video</a>]
{% endif %}
{%if conference.slides != null%}
[<a href="{{ conference.slides }}">Diapositivas</a>]
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>