Gallery Plugin

You can create a gallery by just adding photos in the post, and enable the gallery plugin in the _config.yml:

1
2
plugins:
gallery: true

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

HTML + Markdown
1
2
3
4
5
6
7
8
9
10
<div class="justified-gallery">
<!-- Need an empty line here for the following markdown to be rendered -->
![Elephant](/hexo-theme-icarus/gallery/animals/elephant.jpeg)
![Dog](/hexo-theme-icarus/gallery/animals/dog.jpeg)
![Birds](/hexo-theme-icarus/gallery/animals/birds.jpeg)
![Cat](/hexo-theme-icarus/gallery/animals/cat.jpeg)
![Fox](/hexo-theme-icarus/gallery/animals/fox.jpeg)
![Horse](/hexo-theme-icarus/gallery/animals/horse.jpeg)
![Leopard](/hexo-theme-icarus/gallery/animals/leopard.jpeg)
</div>

The following photos come from pexel.com

Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×