From 4f10f0585e2de833a45bded1c8aa46cbc37ec87d Mon Sep 17 00:00:00 2001 From: meetqy Date: Wed, 4 Oct 2023 14:55:34 +0800 Subject: [PATCH] fix: #423 --- themes/gallery/src/pages/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) 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 (