-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproductions.html
48 lines (41 loc) · 1.17 KB
/
productions.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
---
class: productions
layout: page
---
{% assign productions = site.productions | sort: 'date', 'last' %}
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %}
<article class="coming">
<h2>
Prochains événements
</h2>
{% assign productions = site.productions | sort: 'date' %}
<div class="production-list">
{% for production in productions reversed %}
{% capture production_date %}{{production.date | date: '%s'}}{% endcapture %}
{% if production_date > nowunix %}
{% include production.html production=production %}
{% endif %}
{% endfor %}
</div>
</article>
<article class="past">
<h2>
Productions et évenements passés
</h2>
<div class="production-list">
{% for production in productions reversed%}
{% capture production_date %}{{production.date | date: '%s'}}{% endcapture %}
{% if production_date < nowunix %}
{% include production.html production=production %}
{% endif %}
{% endfor %}
</div>
</article>
<article>
<a
class="big button"
href="https://github.com/animaux-du-futur/animaux-du-futur.github.io/wiki/Productions"
>
Gérer les productions
</a>
</article>