liwenyip / hugo-easy-gallery

Automagical css image gallery in Hugo using shortcodes, with optional lightbox/carousel gadget using PhotoSwipe and jQuery.
MIT License
573 stars 111 forks source link

Multiple Separate Galleries on One Page #85

Open jehand opened 1 year ago

jehand commented 1 year ago

I'm trying to have a few galleries on one page, and I want each of them to open separately when you click on them. I.e. if you click on the first gallery, it will only let you click through pictures from that gallery. If you click on the second gallery, it will only let you click through pictures from the second gallery, and so on. Is there a way to adapt the code provided here to allow for this. My guess is that you would need multiple pswp blocks and you would then have to provide each of them a unique id that you can track in the javascript file, although I am not sure how to do that. Any help is appreciated!