Hinode Module - mgallery
Create a gallery from a set of images
About
This module takes a set of images and creates a gallery from those images. The gallery can either be organized in a grid or a vertical masonry. When an image is selected, a viewer opens, which is based on Lightbox 2.
The module is intended to be used together with Hinode, a Hugo theme. The module depends on Bootstrap, which is part of the Hinode theme.
Installation
To install this module in a site using the Hinode theme, the following steps are needed on that site:
- Open the file
config/_default/hugo.toml
and add the following to the [module]
section.
[[module.imports]]
path = "github.com/myrthos/mod-mgallery"
- Open the file
config/_default/params.toml
and add the following to the [modules]
section
Add , "mgallery"
before the last bracket (]
) of the optional
parameter. - Run
npm run mod:update
from the command line, to download the latest version of the gallery.
To use the gallery, the mgallery
shortcode is used. On the page where this shortcode is used, the following should be part of the frontmatter:
modules: ["mgallery"]
This will enable loading the required javascript files for the gallery.
Documentation
For more information check the mgallery blog and documentation
Hinode
Hinode is a clean blog theme for Hugo, an open-source static site generator. Hinode is available as a template, and a main theme. Visit the Hinode documentation site for installation instructions.