-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple galleries on one page #70
Comments
Quick update to say it looks like the latest commit caused this problem. I noticed the jQuery error I was seeing was introduced in the latest update and 8fbc102 works fine. Thanks for the theme! I've rolled back for the moment and it's working perfectly :) |
I'm seeing the same issue. |
Thank you for reporting the bug and identifying the problematic commit. |
The galleries are beautiful but I'm having an issue when I try to add two of them on the same page.
I'm using page bundles and have installed hugo-shortcode-gallery via git in my themes folder. I'm loading jquery with
galleryLoadJQuery = true
in hugo.toml. My content is structured like this:I have two lines in index.md
{{< gallery match="gallery1/*" sortOrder="desc" rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos" showExif=true previewType="blur" embedPreview=true >}}
{{< gallery match="gallery2/*" sortOrder="desc" rowHeight="150" margins="5" thumbnailResizeOptions="600x600 q90 Lanczos" showExif=true previewType="blur" embedPreview=true >}}
Either line works fine on its own but when they're both present, the second gallery doesn't display and its pictures appear in the first gallery (but not the thumbnails, only when you page through the lightbox).
Adding the second line also causes an error in the console:
Uncaught Error: jQuery is not loaded, hugo-shortcode-gallery wont work without it!
The text was updated successfully, but these errors were encountered: