-
Notifications
You must be signed in to change notification settings - Fork 111
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
lightbox function not working with {{< load-photoswipe >}} #37
Comments
@fte378 , the image file name is named 1359007-bigthumbnail.jpg, I'm using this code for the gallery: |
After looking at your page I think that your jQuery link is wrong. |
updated the jQuery script inside load-photoswipe.html with below code:
tested on localhost still not showing lightbox. |
Hm. Can you provide your complete source code for the gallery part? |
I'm using the default load-photoswipe.html code, installed rest as instructed in readme.md |
site code on Git: https://github.com/vjfader/home2018 |
Ok - first change to get it running: copy the '+++' in about.md also below the metadata. Else Hugo wouldn't even start. |
You did miss the following sentence in the readme: [image].jpg is used for the hi-res image, and [image]-thumb.jpg is used for the thumbnails. You also mix images used for the gallery with other images in the same directory. There are two possible strategies as solution:
|
You missed another part of the readme: Add the following lines to the footer of your template, just before the end body tag: (under Theme integration) Here is your testblog1.md file. Both gallery versions are included for reference.
|
Btw: You know that the purpose of thumbnails is to save initial bandwith? So normally thumbnails are much smaller than the 'big' image. |
I enabled PhotoSwipe using {{< load-photoswipe >}} inside blog blog, however it is linking directly to the image itself instead of opening inside a lightbox.
my example: https://new-homepage-2018.netlify.com/blog/testblog1/
Please advise, thanks!
The text was updated successfully, but these errors were encountered: