mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-05-15 06:58:50 +02:00
fix: include photo gallery images in lightbox selector
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ document.addEventListener("alpine:init", () => {
|
|||||||
init() {
|
init() {
|
||||||
const container = this.$root;
|
const container = this.$root;
|
||||||
const imgs = container.querySelectorAll(
|
const imgs = container.querySelectorAll(
|
||||||
".e-content img:not(.u-photo)"
|
".e-content img:not(.u-photo), .photo-gallery img.u-photo"
|
||||||
);
|
);
|
||||||
this.images = Array.from(imgs);
|
this.images = Array.from(imgs);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user