diff options
| author | Eltrac <hi@guhub.cn> | 2025-01-25 14:11:26 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-01-25 14:11:26 +0800 |
| commit | 7cb739da4ce26856beee919f2c6a54d1b2c51bdc (patch) | |
| tree | 80c78651e32e0b1332544e619134756e620094f1 /layouts/partials/scripts.html | |
| parent | 444dd461aa0070dc0d495576014ac13877797629 (diff) | |
chore(i18n): set up multilanguage
Diffstat (limited to 'layouts/partials/scripts.html')
| -rw-r--r-- | layouts/partials/scripts.html | 4 |
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]"); |
