diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-22 12:42:56 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-22 12:42:56 +0200 |
| commit | 631547a75142326a7c71bdf123e1475217a5ad73 (patch) | |
| tree | f3cfef6b3c5b42bf626fc823ddcf63b8dcf4cdbb /assets/js/not-found-page.js | |
| parent | 77ccbe72fad5a4870185fff374f75471c16a9043 (diff) | |
| download | danixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.tar.gz danixxyz-theme-631547a75142326a7c71bdf123e1475217a5ad73.zip | |
chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme)
Diffstat (limited to 'assets/js/not-found-page.js')
| -rw-r--r-- | assets/js/not-found-page.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/assets/js/not-found-page.js b/assets/js/not-found-page.js new file mode 100644 index 0000000..2b4f676 --- /dev/null +++ b/assets/js/not-found-page.js @@ -0,0 +1,9 @@ +// 404 page: initialize shared notFoundPage Alpine component +document.addEventListener('alpine:init', () => { + // Ensure search index is preloaded on 404 page + const notFoundElement = document.querySelector('[x-data*="notFoundPage"]'); + if (notFoundElement && notFoundElement.__x) { + notFoundElement.__x.$data.init(); + } + console.log('404 page initialized with shared search functionality'); +}); |
