mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-04-02 16:44:56 +02:00
fix: include photo gallery images in lightbox selector
This commit is contained in:
@@ -15,7 +15,7 @@ document.addEventListener("alpine:init", () => {
|
||||
init() {
|
||||
const container = this.$root;
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user