From 46c33837ba8519a54930b2abb65e322c5c577e5b Mon Sep 17 00:00:00 2001 From: Mischa Date: Fri, 19 Jun 2026 21:56:03 +0200 Subject: [PATCH] docs: add dev server port and trip page filter bar notes to CLAUDE.md --- CLAUDE.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CLAUDE.md b/CLAUDE.md index f474466..5546124 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -18,14 +18,20 @@ - **Docker image:** `getgrav/grav` with `GRAV_CHANNEL=beta` - **PHP session:** `session.save_path = /tmp` set in `php/php-local.ini` +### Dev server + +The Docker dev server runs at **http://localhost:8081** (mapped from container port 80 in `docker-compose.yml`). + ### Trip entity architecture The site is structured around Trip entities. Key facts: - Active trip is set in `user/config/site.yaml` → `active_trip: japan-korea-2026` - Trip pages live at `user/pages/01.trips//` - Each trip has: `01.dailies/`, `02.map/`, `03.stats/`, `04.stories/` -- Nav in `base.html.twig` derives all links from `config.site.active_trip` +- Site nav in `base.html.twig` has Home + Past Trips only — does not link to trip sub-sections - Post form parent (`post-form.md` → `pageconfig.parent`) **must be kept in sync** with `active_trip` +- The trip page (`trip.html.twig`) uses a **client-side filter bar** (All content / Journal / Stories) — do NOT add nav links back to `/dailies`, `/stats`, `/stories` on the trip page +- Stats are shown inline on the trip page via a toggle; the standalone `/stats` sub-page still exists as a URL but is not linked from the trip page - GPX route files live as media on the trip page itself, served via leaflet-gpx CDN - Manage GPX files (view/upload/delete) at `/gpx-manager` — requires admin login; filenames are auto-slugified on upload