diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index db15491..18a65c3 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -83,7 +83,16 @@ document.addEventListener('DOMContentLoaded', function() {
visibleCount++;
} else {
const cardCategory = cardDiv.getAttribute('data-category'); // Get category from the .card div
- console.log('Card element:', cardLinkElement, 'Card div:', cardDiv, 'Card category:', cardCategory, 'Selected:', selectedCategory);
+
+ // Detailed log for comparison
+ const sCat = selectedCategory ? selectedCategory : 'null_or_empty';
+ const cCat = cardCategory ? cardCategory : 'null_or_empty';
+ console.log(
+ `Comparing: cardCategory='${cCat}' (length ${cCat.length})` +
+ ` vs selectedCategory='${sCat}' (length ${sCat.length})` +
+ ` for card titled: '${cardDiv.querySelector('.card-title') ? cardDiv.querySelector('.card-title').textContent.trim() : 'N/A'}'`
+ );
+
const isVisible = (cardCategory === selectedCategory);
cardLinkElement.style.display = isVisible ? '' : 'none';
if (isVisible) visibleCount++;