50a5f2d178
- Rename tracker.html.twig to dailies.html.twig; update dailies.md template key - Fix map.html.twig and stats.html.twig: find dailies via page.parent().route - Update base.html.twig nav to use config.site.active_trip for all hrefs - Fix dailies.html.twig mini-map link to use page.parent().url/map - Create trip.html.twig, trips.html.twig, stories.html.twig Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
23 lines
532 B
Twig
23 lines
532 B
Twig
{% extends 'partials/base.html.twig' %}
|
|
|
|
{% block content %}
|
|
<h1>{{ page.title }}</h1>
|
|
{% set trips = page.children.published() %}
|
|
{% if trips|length == 0 %}
|
|
<p>No trips yet.</p>
|
|
{% else %}
|
|
<ul class="trips-list">
|
|
{% for trip in trips %}
|
|
<li>
|
|
<a href="{{ trip.url }}">
|
|
<strong>{{ trip.title }}</strong>
|
|
{% if trip.header.date_start %}
|
|
<span>{{ trip.header.date_start|date('d M Y') }}</span>
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endblock %}
|