{% extends 'default.html.twig' %} {% block content %} {% set entries = page.children %} {# Collect GPS entries for mini-map #} {% set map_entries = [] %} {% for entry in entries %} {% if entry.header.lat is not empty and entry.header.lng is not empty %} {% set map_entries = map_entries|merge([{ 'lat': entry.header.lat, 'lng': entry.header.lng, 'title': entry.title, 'url': entry.url }]) %} {% endif %} {% endfor %} {% if map_entries|length > 0 %}
View full map →
{% endif %}
{% if entries|length > 0 %} {% for entry in entries %}
{% set hero = null %} {% if entry.header.hero_image and entry.media[entry.header.hero_image] is defined %} {% set hero = entry.media[entry.header.hero_image] %} {% elseif entry.media.images|length > 0 %} {% set hero = entry.media.images|first %} {% endif %} {% if hero %}
{{ entry.title }}
{% if entry.header.location_city or entry.header.location_country %} 📍 {% if entry.header.location_city %}{{ entry.header.location_city|slice(0,20) }}{% endif %} {% if entry.header.location_city and entry.header.location_country %}, {% endif %} {% if entry.header.location_country %}{{ entry.header.location_country }}{% endif %} {% endif %}
{% else %}
{% if entry.header.location_city or entry.header.location_country %} {%- set _loc = [] -%} {%- if entry.header.location_city -%}{%- set _loc = _loc|merge([entry.header.location_city]) -%}{%- endif -%} {%- if entry.header.location_country -%}{%- set _loc = _loc|merge([entry.header.location_country]) -%}{%- endif -%} 📍 {{ _loc|join(', ') }} {% endif %}
{% endif %}

{{ entry.title }}

{{ entry.summary|striptags|slice(0, 250)|trim }}

Read entry →
{% endfor %} {% else %}

No entries yet. The journey is about to begin.

{% endif %}
{% endblock %}