diff --git a/themes/gallery/src/pages/index.tsx b/themes/gallery/src/pages/index.tsx index 4c1b1d6a..16efe22f 100644 --- a/themes/gallery/src/pages/index.tsx +++ b/themes/gallery/src/pages/index.tsx @@ -60,10 +60,15 @@ function Home() { gallery: "#" + id, children: "a.photo-swipe-lightbox-a", pswpModule: () => import("photoswipe"), + loop: false, }); initLightboxVideoPlugin(lightbox); + lightbox.addFilter("placeholderSrc", (placeholderSrc, content) => { + return content.data.msrc ?? placeholderSrc; + }); + lightbox.init(); return () => { @@ -146,6 +151,7 @@ function NextJsImage({ return (