fix: replace broken Nunjucks slice(1) with correct checkin loop

Nunjucks slice(n) groups items into n buckets (not array.slice(n)).
This caused checkin to be an array instead of an object, making
all fields render empty. Now iterates all checkins directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-11 08:51:43 +01:00
parent dce97d8d9b
commit c88b19469c
+2 -2
View File
@@ -14,9 +14,9 @@ withSidebar: true
</p> </p>
</header> </header>
{% if checkins.length > 1 %} {% if checkins.length %}
<section class="space-y-4" aria-label="Past check-ins"> <section class="space-y-4" aria-label="Past check-ins">
{% for checkin in checkins | slice(1) %} {% for checkin in checkins %}
<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">