summaryrefslogtreecommitdiff
path: root/layouts/partials/scripts.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2024-12-19 15:20:55 +0800
committerEltrac <hi@guhub.cn>2024-12-19 15:20:55 +0800
commitd5e989e878e2f1a4dc9814381a589e86b38769c5 (patch)
treecffd816e52ad5f2e7baa4c65a37a54427e5b1dc5 /layouts/partials/scripts.html
parentdf4366e8b041198ba922a5dad34e41672283fad9 (diff)
refactor: move fancybox with other libraries
Diffstat (limited to 'layouts/partials/scripts.html')
-rw-r--r--layouts/partials/scripts.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index d8daaaa0..60ef902c 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -30,10 +30,14 @@ loadWalineComment();
var lazyLoadInstance = new LazyLoad();
lazyLoadInstance.update();
+/* === Fancybox === */
+Fancybox.bind("[data-fancybox]");
+
/* === swup === */
const swup = new Swup();
swup.hooks.on('page:view', () => {
loadWalineComment();
lazyLoadInstance.update();
+ Fancybox.bind("[data-fancybox]");
});
</script>