diff --git a/been.njk b/been.njk deleted file mode 100644 index 8f7e61c..0000000 --- a/been.njk +++ /dev/null @@ -1,94 +0,0 @@ ---- -layout: layouts/been.njk -title: Been -permalink: /been/ -description: All past check-ins captured by this site via Micropub. -withSidebar: true -leafletMap: true ---- -{% set checkins = whereCheckins.checkins or [] %} - -
-
-

Been

-

- All past check-ins captured by this site via Micropub. -

-
- - {% 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.venueWebsiteUrl}), mapPoints) %} - {% endif %} - {% endfor %} - - {% if mapPoints.length %} -
- - - {% endif %} - - {% if checkins.length %} - {% set grouped = checkins | groupby("name") %} - - {% else %} -

No past check-ins found.

- {% endif %} -

- Back to newest check-in → -

-
diff --git a/where.njk b/where.njk index 158beba..16486cc 100644 --- a/where.njk +++ b/where.njk @@ -1,113 +1,100 @@ --- -layout: layouts/base.njk +layout: layouts/been.njk title: Where permalink: /where/ +description: All past check-ins captured by this site via Micropub. withSidebar: true +leafletMap: true --- {% set checkins = whereCheckins.checkins or [] %} -
+
-

Where

-

- Recent check-ins captured by this site via Micropub. -

-
-

- A where page is a place on the web to let others know about your current location. Thanks to Aaron Parecki for ownyourswarm. -

-
+

Where

+

+ All past check-ins captured by this site via Micropub. +

{% if checkins.length %} -
- {% set checkin = checkins[0] %} -
-
-
- -
- -
-

- {{ checkin.name }} -

- - {% if checkin.locationText or checkin.postalCode %} -

- {{ checkin.locationText }}{% if checkin.locationText and checkin.postalCode %}, {% endif %}{{ checkin.postalCode }} -

- {% endif %} - -
- {% if checkin.published %} - - {% endif %} - {% if checkin.coordinatesText %} - {{ checkin.coordinatesText }} - {% endif %} - {% if checkin.isPrivate %} - Private - {% endif %} - {% if checkin.checkedInBy and (checkin.checkedInBy.name or checkin.checkedInBy.url) %} - - Checked in by {% if checkin.checkedInBy.url %}{{ checkin.checkedInBy.name or checkin.checkedInBy.url }}{% else %}{{ checkin.checkedInBy.name }}{% endif %} - - {% endif %} -
- - {% if checkin.tags and checkin.tags.length %} -
- {% for tag in checkin.tags | head(8) %} - #{{ tag }} - {% endfor %} -
- {% endif %} - - {% if checkin.taggedPeople and checkin.taggedPeople.length %} -
- {% for person in checkin.taggedPeople | head(6) %} - {% if person.url %} - {{ person.name or person.url }} - {% else %} - {{ person.name }} - {% endif %} - {% endfor %} -
- {% endif %} - -
- {% if checkin.mapUrl %} - Map - {% endif %} - {% if checkin.venueWebsiteUrl %} - Website - {% endif %} - {% if checkin.venueSocialUrl %} - Social - {% endif %} -
- - {% if checkin.photos and checkin.photos.length %} -
- {% for photo in checkin.photos | head(3) %} - - Check-in photo - - {% endfor %} -
- {% endif %} -
-
-
-
- {% else %} -

No check-ins found.

+ {% set newest = checkins[0] %} +
+

+ I'm currently in {% if newest.venueWebsiteUrl %}{{ newest.name }}{% else %}{{ newest.name }}{% endif %}{% if newest.locationText %}, {{ newest.locationText }}{% endif %} +

+
+ {% endif %} + + {% 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.venueWebsiteUrl}), mapPoints) %} + {% endif %} + {% endfor %} + + {% if mapPoints.length %} +
+ + + {% endif %} + + {% if checkins.length %} + {% set grouped = checkins | groupby("name") %} + + {% else %} +

No past check-ins found.

{% endif %} -

- See all past check-ins → -