feat: move /where override to base, add /been for past check-ins, remove upstream theme/where.njk
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
layout: layouts/base.njk
|
||||||
|
title: Been
|
||||||
|
permalink: /been/
|
||||||
|
withSidebar: true
|
||||||
|
---
|
||||||
|
{% set checkins = whereCheckins.checkins or [] %}
|
||||||
|
|
||||||
|
<div class="been-page">
|
||||||
|
<header class="mb-6 sm:mb-8">
|
||||||
|
<h1 class="text-2xl sm:text-3xl md:text-4xl font-bold text-surface-900 dark:text-surface-100 mb-2">Been</h1>
|
||||||
|
<p class="text-surface-600 dark:text-surface-400">
|
||||||
|
All past check-ins captured by this site via Micropub.
|
||||||
|
</p>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
{% if checkins.length > 1 %}
|
||||||
|
<section class="space-y-4" aria-label="Past check-ins">
|
||||||
|
{% set pastCheckins = checkins | slice(1) | reverse %}
|
||||||
|
{% for checkin in pastCheckins %}
|
||||||
|
<article class="p-4 sm:p-5 bg-surface-50 dark:bg-surface-800 rounded-lg border border-surface-200 dark:border-surface-700 shadow-sm">
|
||||||
|
...existing checkin rendering code from where.njk...
|
||||||
|
</article>
|
||||||
|
{% endfor %}
|
||||||
|
</section>
|
||||||
|
{% else %}
|
||||||
|
<p class="text-surface-600 dark:text-surface-400">No past check-ins found.</p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user