Socket
Book a DemoInstallSign in
Socket

github.com/myrthos/mod-mgallery

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/myrthos/mod-mgallery

Source
Go
Version
v0.1.10
Version published
Created
Source

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.

FAQs

Package last updated on 25 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts