summaryrefslogtreecommitdiff
path: root/layouts/partials/scripts.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-01-25 14:11:26 +0800
committerEltrac <hi@guhub.cn>2025-01-25 14:11:26 +0800
commit7cb739da4ce26856beee919f2c6a54d1b2c51bdc (patch)
tree80c78651e32e0b1332544e619134756e620094f1 /layouts/partials/scripts.html
parent444dd461aa0070dc0d495576014ac13877797629 (diff)
chore(i18n): set up multilanguage
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r--layouts/partials/scripts.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index e1babce6..e498c129 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -26,7 +26,9 @@ loadToc();
littlefoot.littlefoot(littlefootOptions)
/* === swup === */
-const swup = new Swup();
+const swup = new Swup({
+ linkSelector: 'a[href]:not(.no-swup)'
+});
swup.hooks.on('page:view', () => {
lazyLoadInstance.update();
Fancybox.bind("[data-fancybox]");