diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-17 11:53:56 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-17 11:53:56 +0200 |
| commit | 1ae60588c0ceb8a3ec0b35f4c2cb45a2116ec89a (patch) | |
| tree | 833fd7865f89a452a2c48e425712862827a7eb7f /themes/danix-xyz-hacker/assets/js | |
| parent | 1cab4424a5c6dd2aeb453d299b6a2f12a840599d (diff) | |
| download | danixxyz-1ae60588c0ceb8a3ec0b35f4c2cb45a2116ec89a.tar.gz danixxyz-1ae60588c0ceb8a3ec0b35f4c2cb45a2116ec89a.zip | |
Revert "fix: use Hugo content-based 404 pages for proper multilingual support"
This reverts commit 1cab4424a5c6dd2aeb453d299b6a2f12a840599d.
Diffstat (limited to 'themes/danix-xyz-hacker/assets/js')
| -rw-r--r-- | themes/danix-xyz-hacker/assets/js/not-found-page.js | 12 |
1 files changed, 12 insertions, 0 deletions
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 6ec8895..78e3591 100644 --- a/themes/danix-xyz-hacker/assets/js/not-found-page.js +++ b/themes/danix-xyz-hacker/assets/js/not-found-page.js @@ -31,5 +31,17 @@ document.addEventListener('alpine:init', () => { } })); + Alpine.data('notFoundNav', () => ({ + get homeLink() { + return window.currentLang === 'it' ? '/it/' : '/'; + }, + get articlesLink() { + return window.currentLang === 'it' ? '/it/articles/' : '/articles/'; + }, + get contactLink() { + return window.currentLang === 'it' ? '/it/is/here/' : '/is/here/'; + } + })); + console.log('notFoundPage Alpine component registered'); }); |
