Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Hugo theme for building media galleries that mix photos and videoclips in a Pinterest-style vertical layout.
Berenice is a Hugo theme for constructing media galleries that combine photographs and videoclips, displayed in a vertical Pinterest-style layout with a fullscreen lightgallery lightbox.
Berenice is a Hugo theme that transforms a folder of images and videos into a static photo album website. It takes content directories containing either an index.md (single-page album) or _index.md (list page that links to child albums) and generates a responsive, vertically stacked gallery. The theme was authored by 22decembre and is available on GitHub. Its core goal is to display videos inline in a photo gallery, which the inspiration theme (Nico Kaiser's Hugo Theme Gallery) did not support.
public directory using Hugo's built-in image processing, while original files in the content directory remain untouched.index.md with a title and featured_image) or a list page (contains _index.md and displays child folders as album thumbnails).baseURL, languageCode, title, and theme; an optional timeout = "120s" gives Hugo enough time to process many pictures, and HugoFooter toggles a footer with links to Hugo, the theme, and the author.[params.author] with name and email fields to attribute the site owner.Berenice is built for photographers and videographers who want a self-hosted, static gallery site without a CMS. Hugo users who need mixed-media albums — photos alongside short video clips — will find the built-in video lightbox behavior the main differentiator. It also suits hobbyists who prefer editing Markdown front matter and dropping files into folders over using a database-backed gallery application.
featured_image used as the thumbnail link._index.md and index.md files, relying on the recursive structure to build a browsable nested archive.Install it by cloning the repository into ~/hugo/themes/ and setting theme = "Berenice" in config.toml. Then create content folders: each folder contains either an index.md (album) or _index.md (list of child albums), plus the media files. Write front matter with title, date, and featured_image, then run Hugo with a timeout setting to let image processing finish.
Berenice's direct predecessor is Nico Kaiser's Hugo Theme Gallery, which uses Photoswipe instead of lightgallery and does not support controlling videoclips in the lightbox.
index.md and an _index.md in the same folder?No. An album folder cannot both display pictures and present links to child albums. Choose one: either a single-page album or a list page.
featured_image?No. The README states that you should not use a videoclip as a featured_image; only pictures are supported for the album thumbnail.
Berenice is hosted on GitHub and can be cloned directly without any purchase, so you can use it for your own site. The README does not mention any paid licensing.
timeout setting for?The example config sets timeout = "120s" to give Hugo enough time to process all the pictures the theme may need to copy and scale. Without it, large albums may time out during the build.
Place video files in the same content folder as your images. In the vertical layout they appear toward the bottom, loop while muted and without controls. When clicked, they open in the lightgallery window where playback and sound become available.