From 010478b3fa2942070c0597b1ba0fb63a7ea9adfc Mon Sep 17 00:00:00 2001 From: Mischa Date: Fri, 19 Jun 2026 17:32:47 +0200 Subject: [PATCH] fix: sort past trips descending by date (newest first) Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01RB86BaJBG3eGiMdfhmHRrQ --- themes/intotheeast/templates/trips.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/intotheeast/templates/trips.html.twig b/themes/intotheeast/templates/trips.html.twig index 05f9254..60a5726 100644 --- a/themes/intotheeast/templates/trips.html.twig +++ b/themes/intotheeast/templates/trips.html.twig @@ -2,7 +2,7 @@ {% block content %}

Past Trips

-{% set trips = page.children.published() %} +{% set trips = page.children.published()|sort((a, b) => a.date < b.date ? 1 : -1) %} {% if trips|length == 0 %}

No trips yet.

{% else %}