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

load-photoswipe shortcode does'nt works. #79

Closed nhtithy closed 1 year ago

nhtithy commented 1 year ago

I am using hugo-easy-gallery with papermod theme. the gallery shortcode works fine for me. but when i use load-photoswipe shortcode it does'nt work. I inspected the page with developer tools, and saw the scripts(jquery, photoswipe-min-js, etc) does'nt load. So i assume the shortcode is not working at all. I tried to load jquery and other scripts manually. In that case when i click on an individual photo instead of loading photoswipe it just does nothing ,also doesnt takes me to a new page with resolution image.

NB. I have placed the files on my project folder, not in themes.

nhtithy commented 1 year ago

fixed it by placing photoswipe before gallery