feat: add GPX route rendering to trip map via leaflet-gpx

Adds leaflet-gpx@2.1.2 CDN script to map template, collects *.gpx
media files from the trip page, and renders them as teal polylines
beneath entry pins. Also fixes user/config/media.yaml to use the
required types: key so Grav's Media class correctly discovers .gpx
files. Map remains functional when no GPX files are present.
This commit is contained in:
2026-06-19 01:38:36 +02:00
parent 50a5f2d178
commit 86997cb878
2 changed files with 21 additions and 2 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
gpx:
types:
gpx:
type: file
extensions: ['gpx']
mime: application/gpx+xml