File tree 2 files changed +13
-4
lines changed
2 files changed +13
-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.trainings %}
5
+ {% capture now %}{{site.time | date: '%s' | plus: 0}}{% endcapture %}
6
+ {% assign upcomingTrainings = '' | split: ',' %}
7
+ {% for training in paginator.trainings %}
8
+ {% capture date %}{{training.when|date: '%s'|plus: 86400}}{% endcapture %}
9
+ {% if now < = date %}
10
+ {% assign upcomingTrainings = upcomingTrainings | push: training %}
11
+ {% endif %}
12
+ {% endfor %}
13
+
14
+ {% include events-training-list-top.html collection=upcomingTrainings %}
6
15
</ div>
7
16
8
17
{% include paginator.html urlPath="training" %}
9
- </ div>
18
+ </ div>
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ permalink: /training/
5
5
6
6
# Pagination
7
7
paginate :
8
+ per_page : 9999
8
9
collection : trainings
9
10
permalink : /:num/
10
- discardPastItems : true
11
11
title_suffix : " "
12
- ---
12
+ ---
You can’t perform that action at this time.
0 commit comments