liwenyip / hugo-easy-gallery

Automagical css image gallery in Hugo using shortcodes, with optional lightbox/carousel gadget using PhotoSwipe and jQuery.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Separate Galleries on One Page

jehand opened this issue · comments

commented

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!