Hugo shortcode to create an image gallery. This is intended to be used in a Hugo project along with an existing theme.
Import the module from GitHub repository.
# hugo.yaml
module:
imports:
- path: github.com/tnlx/hugx/gallery
/* assets/scss/main.scss */
@use 'hugx/gallery';
# data/jonas.yaml
---
- imgSrc: /picture.jpg
title: hugx-1
subtitle: A brief description of this image
url: "#"
- imgSrc: /picture1.jpg
title: hugx-2
subtitle:
url: "#"
hugx/gallery src="jonas.yaml"