summaryrefslogtreecommitdiff
path: root/flowblocks/trail.ini
diff options
context:
space:
mode:
authorDennis Fink2026-07-23 00:18:21 +0200
committerDennis Fink2026-07-23 00:18:21 +0200
commit1fe1d13c600b7dfe421b3b99b833b7d5d1232724 (patch)
tree2e8636160cc1719c907be56f5ef8cbc7e0f10a53 /flowblocks/trail.ini
parentca77de06be474dfd712402c327dc436864d233a3 (diff)
downloaddennisfink.me-1fe1d13c600b7dfe421b3b99b833b7d5d1232724.tar.gz
dennisfink.me-1fe1d13c600b7dfe421b3b99b833b7d5d1232724.zip
Add GPX trail maps to blog posts
This adds a trail flow block so posts can include attached GPX files as interactive maps with route display, elevation charts, activity summaries, and start/finish markers. The trail assets are loaded only when needed, keeping the shared templates clean while vendoring the Leaflet dependencies required for offline, self-hosted map rendering.
Diffstat (limited to '')
-rw-r--r--flowblocks/trail.ini19
1 files changed, 19 insertions, 0 deletions
diff --git a/flowblocks/trail.ini b/flowblocks/trail.ini
new file mode 100644
index 0000000..7529716
--- /dev/null
+++ b/flowblocks/trail.ini
@@ -0,0 +1,19 @@
+[block]
+name = Trail
+button_label = Add trail map
+
+[fields.trail_gpx]
+label = Trail GPX file
+type = select
+source = record.attachments
+item_key = {{ this._id }}
+item_label = {{ this._id }}
+description = Select the GPX file, representing the trail, attached to this blog post.
+
+[fields.activity_gpx]
+label = Activity GPX file
+type = select
+source = record.attachments
+item_key = {{ this._id }}
+item_label = {{ this._id }}
+description = Select the GPX file, representing the actual activity, attached to this blog post.