@@ -38,17 +38,14 @@ <h2 class="navigation__subtitle">Contributing together</h2>
38
38
39
39
< div class ="upcoming-chapters-container container-fluid ">
40
40
< 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 %}
49
41
< div class ="col-lg-1 no-padding-x ">
50
42
</ div >
51
43
< 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 %}
52
49
< section id ="events ">
53
50
< h2 > Upcoming events</ h2 >
54
51
{% if upcoming_event == true %}
@@ -60,6 +57,22 @@ <h2>Upcoming events</h2>
60
57
< p > No upcoming events at the moment</ p >
61
58
{% endif %}
62
59
</ 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 >
63
76
</ div >
64
77
65
78
< div class ="col-lg-4 no-padding-x ">
0 commit comments