summaryrefslogtreecommitdiff
path: root/_includes/extensions/photo-swipe.html
diff options
context:
space:
mode:
Diffstat (limited to '_includes/extensions/photo-swipe.html')
-rw-r--r--_includes/extensions/photo-swipe.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/_includes/extensions/photo-swipe.html b/_includes/extensions/photo-swipe.html
index 9985954..fb3ee7a 100644
--- a/_includes/extensions/photo-swipe.html
+++ b/_includes/extensions/photo-swipe.html
@@ -43,6 +43,9 @@
const imgEls = [];
const els = galleryEl.querySelectorAll("img:not(.emoji)");
els.forEach((el) => {
+ if (el.src.trim() == "") {
+ return;
+ }
if (!imgEls.includes(el)) {
imgEls.push(el);
}