Files
intotheeast-com-content/themes/intotheeast/templates/partials/base.html.twig
T
m038 50a5f2d178 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>
2026-06-19 01:27:39 +02:00

32 lines
1.7 KiB
Twig

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{{ url('theme://css/tokens.css') }}">
<link rel="stylesheet" href="{{ url('theme://css/style.css') }}">
{{ assets.css()|raw }}
{{ assets.js()|raw }}
</head>
<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 }}{{ 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">
{% block content %}{% endblock %}
</main>
{{ assets.js('bottom')|raw }}
</body>
</html>