diff options
| author | eltrac <hi@eltr.ac> | 2026-03-13 22:52:22 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-13 22:52:22 +0800 |
| commit | 73a8477ad6adbe74caa33f69a703788f3eebec39 (patch) | |
| tree | 1ca9176a7aba7cf20322603135456673ba2264a5 | |
| parent | d8680e65f3088d928de0b9e2ed9f6c439fee3e86 (diff) | |
feat: add option to disable libra.js on certain images
| -rw-r--r-- | layouts/_partials/scripts.html | 5 |
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> |
