Skip to content

Commit f1525fc

Browse files
committed
fix(event-listings) - Fixed date, changed listing display to always show latest
Before this commit, the listings jsut showed the first three listings in a reversed order. This now shows the 3 latest
1 parent 844ecd7 commit f1525fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

_events/2018-05-31-bdd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Behat Best Practises with Ciaran McNulty
3-
date: Thu Apr 31 2018
3+
date: Thu May 31 2018
44
description: >
55
Behat is widely used as part of a Behaviour Driven Development lifecycle, but it's also widely misused.
66
In this talk Ciaran will explain what BDD and Behat involve, and show the best practices including writing good scenarios, driving service development from scenarios, and techniques for fast UI testing.

index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ layout: landingpage
2525
<div class="container pb-2">
2626
<h2>Events</h2>
2727
<div class="row">
28-
{% for event in site.events reversed limit:3 %}
28+
<!-- Has to be done this way as Liquid can't reverse and limit properly -->
29+
{% assign events = site.events | sort: 'date' | reverse %}
30+
{% for event in events limit:3 %}
2931
{% include component/summary.html summary=event %}
3032
{% endfor %}
3133
</div>

0 commit comments

Comments
 (0)