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:
@@ -14,9 +14,9 @@ withSidebar: true
|
|||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{% if checkins.length %}
|
{% if checkins.length > 1 %}
|
||||||
<section class="space-y-4" aria-label="Past check-ins">
|
<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">
|
<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="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">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
{% endfor %}
|
{% endif %}{% endfor %}
|
||||||
</section>
|
</section>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p class="text-surface-600 dark:text-surface-400">No past check-ins found.</p>
|
<p class="text-surface-600 dark:text-surface-400">No past check-ins found.</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user