Hugo Shortcode Gallery screenshot

Hugo Shortcode Gallery

Author Avatar Theme by Mfg92
Updated: 9 Oct 2024
415 Stars

A theme component with a gallery shortcode for the static site generator hugo.

Overview

The hugo-shortcode-gallery is a theme component for Hugo, a static site generator. This component allows users to include a gallery in their .md files using a shortcode. The gallery is rendered with autogenerated thumbnails arranged in a grid. Clicking on the images opens a lightbox where all images can be viewed in fullscreen.

Features

  • Shortcode for including galleries in .md files
  • Autogenerated thumbnails arranged in a grid
  • Lightbox for viewing images in fullscreen

Installation

To install the hugo-shortcode-gallery theme component, follow these steps:

  1. Clone the git repository into your themes folder.
  2. Edit your project’s config.toml file and add this theme component to your themes.

For more information on how to use Hugo’s theme components, refer to the documentation at https://gohugo.io/hugo-modules/theme-components/.

Summary

The hugo-shortcode-gallery is a theme component for Hugo that allows users to easily add galleries to their static site. It provides autogenerated thumbnails arranged in a grid and a lightbox for viewing images in fullscreen. The installation process is simple and can be done by cloning the git repository and adding the theme component to your project’s configuration file.