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.