Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <github@jimmycai.com>2022-03-04 12:31:57 +0300
committerGitHub <noreply@github.com>2022-03-04 12:31:57 +0300
commit6f60f4f552ecc70e613089f47a8a5e5e1d932941 (patch)
tree21d5332aecfa30d9401da4cc6a8edf31a0ebdae6
parent985af924e7643d663a179198f55349e153536e43 (diff)
fix: disable external image lightbox (#525)
-rw-r--r--assets/ts/gallery.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/ts/gallery.ts b/assets/ts/gallery.ts
index 218658d..9840f1e 100644
--- a/assets/ts/gallery.ts
+++ b/assets/ts/gallery.ts
@@ -61,7 +61,7 @@ class StackGallery {
/// because it can not detect whether image is being wrapped by a link or not
/// and it lead to a invalid HTML construction (<a><figure><img></figure></a>)
- const images = container.querySelectorAll('img');
+ const images = container.querySelectorAll('img.gallery-image');
for (const img of Array.from(images)) {
/// Images are wrapped with figure tag if the paragraph has only images without texts
/// This is done to allow inline images within paragraphs