summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/assets/js/not-found-page.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/danix-xyz-hacker/assets/js/not-found-page.js')
-rw-r--r--themes/danix-xyz-hacker/assets/js/not-found-page.js12
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');
});