File tree 4 files changed +20
-4
lines changed
4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 2
2
layout: inner-page-parent
3
3
---
4
4
5
- {% include events-training-list-top.html collection=paginator.events %}
5
+ {% capture now %}{{site.time | date: '%s' | plus: 0}}{% endcapture %}
6
+ {% assign upcomingEvents = '' | split: ',' %}
7
+ {% for event in paginator.events %}
8
+ {% capture date %}{{event.end|date: '%s'|plus: 86400}}{% endcapture %}
9
+ {% if now < = date %}
10
+ {% assign upcomingEvents = upcomingEvents | push: event %}
11
+ {% endif %}
12
+ {% endfor %}
13
+
14
+ {% include events-training-list-top.html collection=upcomingEvents %}
6
15
7
16
{{content}}
8
17
</ div>
Original file line number Diff line number Diff line change 2
2
layout: inner-page-parent
3
3
---
4
4
5
- {% include events-training-list-top.html collection=paginator.events %}
5
+ {% capture now %}{{site.time | date: '%s' | plus: 0}}{% endcapture %}
6
+ {% assign pastEvents = '' | split: ',' %}
7
+ {% for event in paginator.events %}
8
+ {% capture date %}{{event.end|date: '%s'|plus: 86400}}{% endcapture %}
9
+ {% if now > date %}
10
+ {% assign pastEvents = pastEvents | push: event %}
11
+ {% endif %}
12
+ {% endfor %}
13
+
14
+ {% include events-training-list-top.html collection=pastEvents %}
6
15
7
16
{{content}}
8
17
</ div>
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ paginate:
8
8
per_page : 9999
9
9
collection : events
10
10
permalink : /:num/
11
- discardPastItems : true
12
11
title_suffix : " "
13
12
---
14
13
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ paginate:
8
8
collection : events
9
9
per_page : 9999
10
10
permalink : /:num/
11
- pastItems : true
12
11
reversed : true
13
12
title_suffix : " "
14
13
---
You can’t perform that action at this time.
0 commit comments