feat: add trip/trips/stories templates, update nav and map/stats to use trip-relative paths
- 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>
This commit is contained in:
@@ -15,10 +15,12 @@
|
||||
<body class="{% if page.template == 'map' %}map-page{% endif %}">
|
||||
<header class="site-header">
|
||||
<a class="site-title" href="{{ base_url_absolute }}">into the east</a>
|
||||
{% set active_trip = config.site.active_trip %}
|
||||
{% set trip_base = '/trips/' ~ active_trip %}
|
||||
<nav class="site-nav" aria-label="Main navigation">
|
||||
<a href="{{ base_url_absolute }}/tracker"{% if page.url starts with '/tracker' or page.template == 'entry' %} aria-current="page"{% endif %}>Journal</a>
|
||||
<a href="{{ base_url_absolute }}/map"{% if page.url starts with '/map' %} aria-current="page"{% endif %}>Map</a>
|
||||
<a href="{{ base_url_absolute }}/stats"{% if page.url starts with '/stats' %} aria-current="page"{% endif %}>Stats</a>
|
||||
<a href="{{ base_url_absolute }}{{ trip_base }}/dailies"{% if page.url starts with trip_base ~ '/dailies' or page.template == 'entry' %} aria-current="page"{% endif %}>Journal</a>
|
||||
<a href="{{ base_url_absolute }}{{ trip_base }}/map"{% if page.url starts with trip_base ~ '/map' %} aria-current="page"{% endif %}>Map</a>
|
||||
<a href="{{ base_url_absolute }}{{ trip_base }}/stats"{% if page.url starts with trip_base ~ '/stats' %} aria-current="page"{% endif %}>Stats</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="site-main">
|
||||
|
||||
Reference in New Issue
Block a user