Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Jekyll version of the 'Lens' theme by HTML5 UP.

A Hugo theme for building media galleries that mix photos and videoclips in a Pinterest-style vertical layout.
Lens Jekyll Theme is a static-site template that ports HTML5 UP's Lens full-screen photo gallery design to Jekyll, giving photographers a ready-made gallery layout powered by the Jekyll static site generator.
The Lens Jekyll Theme is a Jekyll port of HTML5 UP's Lens design, a full-screen and completely responsive photo gallery layout. It takes thumbnail image entries written as HTML articles and renders them into a two-pane interface: a main wrapper column with site content, a thumbnails grid, and a dynamic full-screen viewer for the selected image. The theme is authored by Andrew Banchich and hosted on GitLab, with a GitHub mirror, and uses the original HTML5 UP assets including jQuery, Font Awesome, Sass, html5shiv, and Respond.js.
data-position attribute on the anchor controls background-position to manage cropping.article elements with an a.thumbnail linking to the full-size file, an img thumbnail, an h2 title, and a p description; the viewer is created automatically on page load._config.yml.misc.main-side variable in assets/sass/libs/_vars.scss, and other tweaks live in assets/js/main.js._config.yml.To add an image, create an article in the thumbnails section with an anchor classed thumbnail pointing to the full-size image, an img tag for the thumbnail, and optional h2 and p elements for title and description. On page load, Lens dynamically constructs the full-screen viewer and wires up the keyboard shortcuts, and the data-position attribute on the anchor lets you control how each image is positioned and cropped in the viewer.
The original Lens design by HTML5 UP is released under the CCA 3.0 license and is free for personal and commercial use. The Jekyll port is hosted as an open repository on GitLab, but the README does not state a separate license for the port.
Fork the GitLab repository and start editing _config.yml. If using GitHub, fork the repo and create a branch named gh-pages before editing _config.yml. The GitHub repository is a mirror of the GitLab one.
Add an article element to the thumbnails section with an anchor using the class thumbnail, an href pointing to the full-size image, an img for the thumbnail, and optional h2 and p text. The viewer is created automatically.
Left arrow goes to the previous image, right arrow to the next, up and down arrows move to the image above or below in the grid, Space advances to the next image, and Escape toggles the main wrapper. These are disabled when the xsmall breakpoint is active.
Yes. Change the misc.main-side variable in assets/sass/libs/_vars.scss to left and recompile the CSS. Other tweakable settings are at the top of assets/js/main.js.
