From e90ad852bb1375fafce888ad43775fcf0306f6c8 Mon Sep 17 00:00:00 2001
From: svemagie <869694+svemagie@users.noreply.github.com>
Date: Fri, 20 Mar 2026 21:37:39 +0100
Subject: [PATCH] feat(been): add Leaflet map, show all checkins, link venue
names
Co-Authored-By: Claude Sonnet 4.6
---
been.njk | 48 +++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 45 insertions(+), 3 deletions(-)
diff --git a/been.njk b/been.njk
index 062094a..adb6a19 100644
--- a/been.njk
+++ b/been.njk
@@ -3,6 +3,7 @@ layout: layouts/been.njk
title: Been
permalink: /been/
withSidebar: true
+leafletMap: true
---
{% set checkins = whereCheckins.checkins or [] %}
@@ -14,9 +15,46 @@ withSidebar: true
- {% if checkins.length > 1 %}
+ {% set mapPoints = [] %}
+ {% for c in checkins %}
+ {% if c.latitude and c.longitude %}
+ {% set mapPoints = (mapPoints.push({name: c.name, lat: c.latitude, lng: c.longitude, url: c.venueUrl}), mapPoints) %}
+ {% endif %}
+ {% endfor %}
+
+ {% if mapPoints.length %}
+
+
+
+ {% endif %}
+
+ {% if checkins.length %}
- {% for checkin in checkins %}{% if not loop.first %}
+ {% for checkin in checkins %}
@@ -28,7 +66,11 @@ withSidebar: true
+ {% if checkin.venueUrl %}
+ {{ checkin.name }}
+ {% else %}
{{ checkin.name }}
+ {% endif %}
{% if checkin.locationText or checkin.postalCode %}
@@ -98,7 +140,7 @@ withSidebar: true
- {% endif %}{% endfor %}
+ {% endfor %}
{% else %}
No past check-ins found.