diff --git a/themes/intotheeast/templates/gpx-manager.html.twig b/themes/intotheeast/templates/gpx-manager.html.twig index 12997ab..3973351 100644 --- a/themes/intotheeast/templates/gpx-manager.html.twig +++ b/themes/intotheeast/templates/gpx-manager.html.twig @@ -2,7 +2,10 @@ {% block content %} {% set trips_page = grav.pages.find('/trips') %} -{% set trips = trips_page ? trips_page.children.published() : [] %} +{# Owner-only page (admin login), so show unpublished trips too — no .published() + filter — and order newest first by trip start date so the current/next trip is + at the top. #} +{% set trips = trips_page ? trips_page.children.order('header.date_start', 'desc') : [] %}