Gallery Example

To add a photo gallery placeholder to your post, just add the following lines to your front-matter:

1
2
3
4
photos:
- https://www.hdwallpapers.net/previews/starry-night-over-corsica-986.jpg
- https://www.hdwallpapers.net/previews/water-plant-close-up-979.jpg
- ...

and enable lightgallery plugin in your _config.yml:

1
2
3
4
5
# Plugins
plugins:
+ lightgallery: true # options: true, false
google_analytics: # enter the tracking ID for your Google Analytics
...

You can also add photos between text to create another gallery like this:

Lion

or this:

Red Panda

Finally, you can also use Justified Gallery to display you photos in a grid:

1
2
3
4
5
# Plugins
plugins:
+ justifiedgallery: true # options: true, false
google_analytics: # enter the tracking ID for your Google Analytics
...
Share