summaryrefslogtreecommitdiff
path: root/layouts/_partials/scripts.html
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-03-13 22:52:22 +0800
committereltrac <hi@eltr.ac>2026-03-13 22:52:22 +0800
commit73a8477ad6adbe74caa33f69a703788f3eebec39 (patch)
tree1ca9176a7aba7cf20322603135456673ba2264a5 /layouts/_partials/scripts.html
parentd8680e65f3088d928de0b9e2ed9f6c439fee3e86 (diff)
feat: add option to disable libra.js on certain images
Diffstat (limited to 'layouts/_partials/scripts.html')
-rw-r--r--layouts/_partials/scripts.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/_partials/scripts.html b/layouts/_partials/scripts.html
index 8e65c873..158ac812 100644
--- a/layouts/_partials/scripts.html
+++ b/layouts/_partials/scripts.html
@@ -30,7 +30,10 @@ document.addEventListener("DOMContentLoaded", () => {
<script type="module">
document.addEventListener('DOMContentLoaded', async () => {
const { default: LightBox } = await import('/js/libra.min.js');
- const lightbox = new LightBox({ offset: { x: -8, y: -80 } });
+ const lightbox = new LightBox({
+ offset: { x: -8, y: -80 },
+ selector: "[data-libra]:not(.disable-libra *)",
+ });
});
</script>