diff --git a/_includes/layouts/where.njk b/_includes/layouts/where.njk index 5eec1d1..1c68fd8 100644 --- a/_includes/layouts/where.njk +++ b/_includes/layouts/where.njk @@ -10,6 +10,9 @@ withSidebar: true

Recent check-ins captured by this site via Micropub.

+

+ See all past check-ins → +

{% if content %}
{{ content | safe }} @@ -48,29 +51,30 @@ withSidebar: true {{ 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 checkins.length %} + {% set checkin = checkins[0] %} +
+
+
+ +
- {% if checkin.tags and checkin.tags.length %} -
- {% for tag in checkin.tags | head(8) %} - #{{ tag }} - {% endfor %} -
- {% endif %} +
+

+ {{ checkin.name }} +

- {% if checkin.taggedPeople and checkin.taggedPeople.length %} -
- {% for person in checkin.taggedPeople | head(6) %} - {% if person.url %} - {{ person.name or person.url }} - {% else %} + {% if checkin.locationText or checkin.postalCode %} +

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

+ {% endif %} + +
{{ person.name }} {% endif %} {% endfor %} diff --git a/been.njk b/been.njk new file mode 100644 index 0000000..24ac657 --- /dev/null +++ b/been.njk @@ -0,0 +1,32 @@ +--- +layout: layouts/been.njk +title: Been +permalink: /been/ +withSidebar: true +--- + +{% set checkins = whereCheckins.checkins or [] %} + +
+
+

Been

+

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

+
+ + {% if checkins.length > 1 %} +
+ {% for checkin in checkins | slice(1) %} +
+ {# ...existing checkin rendering code from where.njk... #} +
+ {% endfor %} +
+ {% else %} +

No past check-ins found.

+ {% endif %} +

+ Back to newest check-in → +

+
diff --git a/theme/where.njk b/where.njk similarity index 85% rename from theme/where.njk rename to where.njk index 3e55cbc..4d2c693 100644 --- a/theme/where.njk +++ b/where.njk @@ -12,11 +12,14 @@ withSidebar: true

Recent check-ins captured by this site via Micropub.

+

+ See all past check-ins → +

{% if checkins.length %}
- {% for checkin in checkins %} + {% set checkin = checkins[0] %}
@@ -90,7 +93,7 @@ withSidebar: true
{% for photo in checkin.photos | head(3) %} - Check-in photo + Check-in photo {% endfor %}
@@ -98,17 +101,8 @@ withSidebar: true
- {% endfor %}
{% else %} -
-

No check-ins available yet

-

- This page reads local content created by your Micropub endpoint. Check-ins appear here when posts include fields like checkin, location, or coordinates. -

-

- Scanned {{ whereCheckins.scannedFiles or 0 }} content files{% if whereCheckins.errors and whereCheckins.errors.length %} with {{ whereCheckins.errors.length }} parse warning(s){% endif %}. -

-
+

No check-ins found.

{% endif %}