From a990469085e390c586928a799f12a88ba9cccb39 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 21 Jun 2026 02:19:27 +0000 Subject: [PATCH] Fix broken search on list pages (articles, podcast) The client-side search filter threw a TypeError on every card because data-tags is only rendered when an article has tags, but no articles use tags (they use categories). Reading item.dataset.tags returned undefined and calling .includes() on it aborted the filter loop, so search did nothing. Default the dataset reads to empty strings so missing attributes no longer crash the filter. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Px3dibHBwyDeWD2HMwwzoX --- themes/powershell-community/layouts/_default/list.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/powershell-community/layouts/_default/list.html b/themes/powershell-community/layouts/_default/list.html index d575ad8bc..90b55557d 100644 --- a/themes/powershell-community/layouts/_default/list.html +++ b/themes/powershell-community/layouts/_default/list.html @@ -207,9 +207,9 @@

No results found

let visibleCount = 0; contentItems.forEach(item => { - const title = item.dataset.title; - const content = item.dataset.content; - const tags = item.dataset.tags; + const title = item.dataset.title || ''; + const content = item.dataset.content || ''; + const tags = item.dataset.tags || ''; if (title.includes(searchTerm) || content.includes(searchTerm) || tags.includes(searchTerm)) { item.style.display = 'block';