fix: skip first checkin on /been using loop.first (shown on /where)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-11 08:52:43 +01:00
parent c88b19469c
commit 6dd86c562a
+3 -3
View File
@@ -14,9 +14,9 @@ withSidebar: true
</p>
</header>
{% if checkins.length %}
{% if checkins.length > 1 %}
<section class="space-y-4" aria-label="Past check-ins">
{% for checkin in checkins %}
{% for checkin in checkins %}{% if not loop.first %}
<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">
<div class="flex items-start gap-3 sm:gap-4">
<div class="w-10 h-10 rounded-full bg-emerald-100 dark:bg-emerald-900/40 flex items-center justify-center flex-shrink-0 mt-0.5">
@@ -98,7 +98,7 @@ withSidebar: true
</div>
</div>
</article>
{% endfor %}
{% endif %}{% endfor %}
</section>
{% else %}
<p class="text-surface-600 dark:text-surface-400">No past check-ins found.</p>