From 681ee6ca03258402deefc62a4d08f44ae7b70cbe Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 17 Apr 2026 11:35:24 +0200 Subject: fix: simplify Alpine.js component initialization by loading articles data directly --- themes/danix-xyz-hacker/assets/js/not-found-page.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'themes/danix-xyz-hacker/assets') diff --git a/themes/danix-xyz-hacker/assets/js/not-found-page.js b/themes/danix-xyz-hacker/assets/js/not-found-page.js index 1590b75..ec42708 100644 --- a/themes/danix-xyz-hacker/assets/js/not-found-page.js +++ b/themes/danix-xyz-hacker/assets/js/not-found-page.js @@ -3,14 +3,7 @@ document.addEventListener('alpine:init', () => { showEasterEgg: false, searchQuery: '', filteredArticles: [], - allArticles: [], - - init() { - // Initialize articles from window.articlesData if available - if (window.articlesData) { - this.allArticles = window.articlesData; - } - }, + allArticles: window.articlesData || [], filterArticles(query) { this.searchQuery = query.toLowerCase(); -- cgit v1.2.3