Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
add a theme using photoswipe (http://photoswipe.com/). #163
This PR is linked to #164
Photoswipe library needs image size to render image (see http://photoswipe.com/documentation/faq.html). So, I have to add a specific property to return image size (disclaimer : I am a python beginner). We can't use 'img_size' property because depending on image orientation, image size can differ.
The first image is highlighted for each album.
Pictures are lazy loaded thanks to echo (https://github.com/toddmotto/echo).
This is a wonderful contribution. Thank you @franek!
I have used this new theme for a gallery I've posted: http://lukeandmichelle.ca/cycamatic/
I did some work to improve the alignment of the thumbnails and to ensure the layout is responsive to small screens. I posted my changes here. If they're a useful addition to this PR, I can submit a PR to this branch so that they are amalgamated.
I tested these changes on Mac Chrome, Firefox, Safari, and Mobile Safari on iPhone 4S, and simulated a few other mobile devices using Chrome Devtools.