Hugo Narrow supports lightbox, use PhotoSwipe .The gallery supports three layouts: justified, masonry, and grid, type in markdown.

params.yaml
 1gallery:
 2  enabled: true
 3  defaultLayout: justified # justified, masonry, grid
 4  gap: 10
 5  targetRowHeight: 200
 6  lastRowBehavior: center # left, center, right, fill, hide
 7  columnWidth: 200
 8  columns: 4 # auto or number
 9
10# PhotoSwipe
11lightbox:
12  enabled: true
13  bgOpacity: 0.8
14  showHideAnimationType: zoom
15  showAnimationDuration: 333
16  hideAnimationDuration: 333
Click to expand and view more

Directly import image resources using markdown syntax, with one resource link per line. Image groups without empty lines between them are considered as one gallery. The example below shows two galleries, the first containing two image resources, and the second containing three image resources.

MARKDOWN
1![](images/image01.jpg)
2![](images/image02.jpg)
3
4![](images/image03.jpg)
5![](images/image04.jpg)
6![](images/image05.jpg)
Click to expand and view more

Copyright Notice

Author: Hugo Narrow

Link: https://hugo-narrow-docs.vercel.app/docs/gallery/

License: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut