← posts

Image Gallery Shortcode

Here’s a custom Hugo shortcode that creates an image gallery in a masonry style using GLightbox, allowing you to specify a folder containing images. This approach will display images from a specified folder in a masonry layout, and each image will open in a lightbox when clicked.

Shortcode:

{{/*< img_gallery  folder="img/travel/" >*/}}

Output:

What are your thoughts on this post?

I'd love to hear from you! Feel free to use the share buttons below if you enjoyed this post.