Revert "chore: add debug output to homepage Recent Posts section for troubleshooting"

This reverts commit 2ded64b408.
This commit is contained in:
svemagie
2026-03-12 12:01:13 +01:00
parent 479eca6fe8
commit 81737d26a4
@@ -9,15 +9,10 @@
{% set showSummary = sectionConfig.showSummary if sectionConfig.showSummary is defined else true %} {% set showSummary = sectionConfig.showSummary if sectionConfig.showSummary is defined else true %}
{% set primaryPosts = collections.posts if (collections and collections.posts) else [] %} {% set primaryPosts = collections.posts if (collections and collections.posts) else [] %}
{% set fallbackRecentPosts = collections.recentPosts if (collections and collections.recentPosts) else [] %} {% set fallbackRecentPosts = collections.recentPosts if (collections and collections.recentPosts) else [] %}
{% set debugPrimaryCount = primaryPosts.length %}
{% set debugFallbackCount = fallbackRecentPosts.length %}
{% set listedPosts = primaryPosts | excludeUnlistedPosts | excludeWhereNotes %} {% set listedPosts = primaryPosts | excludeUnlistedPosts | excludeWhereNotes %}
{% set debugListedCount = listedPosts.length %}
{% if not (listedPosts and listedPosts.length) %} {% if not (listedPosts and listedPosts.length) %}
{% set listedPosts = fallbackRecentPosts | excludeUnlistedPosts | excludeWhereNotes %} {% set listedPosts = fallbackRecentPosts | excludeUnlistedPosts | excludeWhereNotes %}
{% set debugListedCount = listedPosts.length %}
{% endif %} {% endif %}
<div class="text-xs text-surface-400 dark:text-surface-500 mb-2">Debug: primary={{ debugPrimaryCount }}, fallback={{ debugFallbackCount }}, listed={{ debugListedCount }}</div>
{% if listedPosts and listedPosts.length %} {% if listedPosts and listedPosts.length %}
<section class="mb-8 sm:mb-12"> <section class="mb-8 sm:mb-12">