Skip to content

Commit 0be03a1

Browse files
committed
Add recent events
1 parent a0211aa commit 0be03a1

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

index.html

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,14 @@ <h2 class="navigation__subtitle">Contributing together</h2>
3838

3939
<div class="upcoming-chapters-container container-fluid">
4040
<div class="row">
41-
{% include events_array_generator.html future_events=true %}
42-
{% if posts.size > 0 %}
43-
{% assign upcoming_event = true %}
44-
{% assign chapters_col = "col-lg-6" %}
45-
{% assign posts = posts | reverse %}
46-
{% else %}
47-
{% assign chapters_col = "col-12" %}
48-
{% endif %}
4941
<div class="col-lg-1 no-padding-x">
5042
</div>
5143
<div class="col-lg-6 no-padding-x">
44+
{% include events_array_generator.html future_events=true %}
45+
{% if posts.size > 0 %}
46+
{% assign upcoming_event = true %}
47+
{% assign posts = posts | reverse %}
48+
{% endif %}
5249
<section id="events">
5350
<h2>Upcoming events</h2>
5451
{% if upcoming_event == true %}
@@ -60,6 +57,22 @@ <h2>Upcoming events</h2>
6057
<p>No upcoming events at the moment</p>
6158
{% endif %}
6259
</section>
60+
{% include events_array_generator.html limit = 4 %}
61+
{% if posts.size > 0 %}
62+
{% assign recent_event = true %}
63+
{% assign posts = posts %}
64+
{% endif %}
65+
<section id="events">
66+
<h2>Recent events</h2>
67+
{% if recent_event == true %}
68+
{% assign current_date = "" %}
69+
{% for post in posts %}
70+
{% include event_layout.html event=post %}
71+
{% endfor %}
72+
{% else %}
73+
<p>No recent events</p>
74+
{% endif %}
75+
</section>
6376
</div>
6477

6578
<div class="col-lg-4 no-padding-x">

0 commit comments

Comments
 (0)