From 81737d26a4ae03bb90bc5db4a2ee583f9b1f0e06 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Thu, 12 Mar 2026 12:01:13 +0100 Subject: [PATCH] Revert "chore: add debug output to homepage Recent Posts section for troubleshooting" This reverts commit 2ded64b408af1ca4a2702d02c873dbb163eed9c7. --- _includes/components/sections/recent-posts.njk | 5 ----- 1 file changed, 5 deletions(-) diff --git a/_includes/components/sections/recent-posts.njk b/_includes/components/sections/recent-posts.njk index 7295857..b4e9a3b 100644 --- a/_includes/components/sections/recent-posts.njk +++ b/_includes/components/sections/recent-posts.njk @@ -9,15 +9,10 @@ {% set showSummary = sectionConfig.showSummary if sectionConfig.showSummary is defined else true %} {% set primaryPosts = collections.posts if (collections and collections.posts) 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 debugListedCount = listedPosts.length %} {% if not (listedPosts and listedPosts.length) %} {% set listedPosts = fallbackRecentPosts | excludeUnlistedPosts | excludeWhereNotes %} - {% set debugListedCount = listedPosts.length %} {% endif %} -
Debug: primary={{ debugPrimaryCount }}, fallback={{ debugFallbackCount }}, listed={{ debugListedCount }}
{% if listedPosts and listedPosts.length %}