-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (38 loc) · 1.64 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
---
layout: default
---
<section class='main-content'>
{% assign post_size = paginator.posts | size %}
{% if post_size > 0 %}
{% assign today_date = 'now' | date: '%s' %}
<h1 class="module title color-2 text-color-white">Upcoming meetings</h1>
{% for post in paginator.posts %}
{% assign post_date = post.date | date: '%s' | plus:104400 | date: '%s' %}
{% if today_date < post_date %}
{% include post_summary.html %}
{% endif %}
{% endfor %}
<h1 class="module title color-2 text-color-gray">Past meetings</h1>
{% for post in paginator.posts %}
{% assign post_date = post.date | date: '%s' | plus:104400 | date: '%s' %}
{% if today_date > post_date %}
{% include post_summary_past.html %}
{% endif %}
{% endfor %}
<div class='module pagination color-2'>
{% if paginator.previous_page %}
<a href='{{ site.url }}{{ paginator.previous_page_path }}' class='previous text-color-white'>Previous</a>
{% endif %}
<span class='page_number text-color-white'>
— {{ paginator.page }} of {{ paginator.total_pages }} —
</span>
{% if paginator.next_page %}
<a href='{{ site.url }}{{ paginator.next_page_path }}' class='next text-color-white'>Next</a>
{% endif %}
</div>
{% else %}
<h1 class="module title color-2 text-color-white">Upcoming meetings</h1>
<h1 class="module title color-2 text-color-gray">Past meetings</h1>
<h2 class="module title color-3 text-color-white">No events to show.</h2>
{% endif %}
</section>