diff --git a/themes/intotheeast/templates/home.html.twig b/themes/intotheeast/templates/home.html.twig index e85aba9..401d097 100644 --- a/themes/intotheeast/templates/home.html.twig +++ b/themes/intotheeast/templates/home.html.twig @@ -64,18 +64,23 @@
- {% include 'partials/trip-feed-col.html.twig' with { - trip_page: trip, - all_items: all_items, - journal_entries: journal_entries, - journal_count: journal_count, - story_count: story_count, - has_gpx: home_gpx_urls|length > 0, - gpx_urls: home_gpx_urls, - gps_points: gps_points, - show_sort: false, - pre_departure: all_items|length == 0 - } only %} + {% if all_items|length == 0 %} + {% include 'partials/home-predeparture.html.twig' with { + trip_page: trip + } only %} + {% else %} + {% include 'partials/trip-feed-col.html.twig' with { + trip_page: trip, + all_items: all_items, + journal_entries: journal_entries, + journal_count: journal_count, + story_count: story_count, + has_gpx: home_gpx_urls|length > 0, + gpx_urls: home_gpx_urls, + gps_points: gps_points, + show_sort: false + } only %} + {% endif %} {% if map_entries|length > 0 %} diff --git a/themes/intotheeast/templates/partials/home-predeparture.html.twig b/themes/intotheeast/templates/partials/home-predeparture.html.twig new file mode 100644 index 0000000..ed95b75 --- /dev/null +++ b/themes/intotheeast/templates/partials/home-predeparture.html.twig @@ -0,0 +1,16 @@ +Departing {{ trip_page.header.date_start|date('d M Y') }}
+ {% endif %} + Coming soon +The journey hasn't begun yet — check back once we're on the road.
+ +Departing {{ trip_page.header.date_start|date('d M Y') }}
- {% endif %} - Coming soon -The journey hasn't begun yet — check back once we're on the road.
- -