-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.html
50 lines (47 loc) · 1.5 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
header-variant: start-page
---
{% assign curDate = site.time %}
{% assign next_meetups = site.posts | where_exp: "item", "item.date > curDate" | sort: "date" %}
{% assign past_meetups = site.posts | where_exp: "item", "item.date <= curDate" | sort: "date" %}
{% assign next_meetup = next_meetups | first %}
{% assign prev_meetup = past_meetups | last %}
{% assign further_down_the_line = next_meetups | shift %}
<div class="page-home" role="main">
<section class="next-meetup">
{% if next_meetup %}
<p class="section-headline">Next</p>
<article class="event is-next-meetup">
{% if next_meetup.talks != false %}
{% include event.html event=next_meetup skip_date=true call_for_talks=true show_abstracts=false %}
{% else %}
{% include event.html event=next_meetup skip_date=true call_for_talks=false %}
{% endif %}
</article>
{% else %}
<h1>
We are currently planning our next meetup!
</h1>
<p>
<a href="{{ site.feedback_url }}">
Help us!
</a>
</p>
{% endif %}
</section>
{% if further_down_the_line.size > 0 %}
<section class="future-meetups">
<p class="section-headline">Upcoming</p>
{% for event in further_down_the_line %}
{% include event-inline.html event=event %}
{% endfor %}
</section>
{% endif %}
{% if prev_meetup %}
<section class="prev-meetup">
<p class="section-headline">Previous</p>
{% include event-inline.html event=prev_meetup %}
</section>
{% endif %}
</div>