fix: been layout now passes content through instead of placeholder
layouts/been.njk was overriding the page template content with
placeholder text. Now outputs {{ content | safe }} so been.njk
renders correctly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,29 +1,4 @@
|
|||||||
---
|
---
|
||||||
layout: layouts/base.njk
|
layout: layouts/base.njk
|
||||||
title: Been
|
|
||||||
permalink: /been/
|
|
||||||
withSidebar: true
|
|
||||||
---
|
---
|
||||||
{% set checkins = whereCheckins.checkins or [] %}
|
{{ content | safe }}
|
||||||
|
|
||||||
<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