chore: add lightgallery example
parent
8c36e0d208
commit
93ca897816
|
@ -0,0 +1,33 @@
|
||||||
|
title: Gallery Example
|
||||||
|
date: 2015-01-26 21:55:37
|
||||||
|
photos:
|
||||||
|
- https://www.hdwallpapers.net/previews/starry-night-over-corsica-986.jpg
|
||||||
|
- https://www.hdwallpapers.net/previews/water-plant-close-up-979.jpg
|
||||||
|
- https://www.hdwallpapers.net/previews/winter-day-at-yosemite-national-park-971.jpg
|
||||||
|
- https://www.hdwallpapers.net/previews/vatnajokull-national-park-iceland-899.jpg
|
||||||
|
tags:
|
||||||
|
---
|
||||||
|
To add a photo gallery placeholder to your post, just add the following lines to your front-matter:
|
||||||
|
```yml
|
||||||
|
photos:
|
||||||
|
- https://www.hdwallpapers.net/previews/starry-night-over-corsica-986.jpg
|
||||||
|
- https://www.hdwallpapers.net/previews/water-plant-close-up-979.jpg
|
||||||
|
- ...
|
||||||
|
```
|
||||||
|
<!-- more -->
|
||||||
|
and enable `lightgallery` plugin in your `_config.yml`:
|
||||||
|
```diff
|
||||||
|
# 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:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
or this:
|
||||||
|
|
||||||
|

|
|
@ -39,13 +39,11 @@ Icarus knows on what screen size you are browsering the website, and reorganize
|
||||||
|
|
||||||
Get your categories and tags listed in single pages to make your blog more methodic.
|
Get your categories and tags listed in single pages to make your blog more methodic.
|
||||||
|
|
||||||
### Fancybox
|
### lightgallery
|
||||||
|
|
||||||
Icarus uses [Fancybox] to showcase your photos. You can use Markdown syntax or fancybox tag plugin to add your photos.
|
Icarus uses [lightgallery.js](https://sachinchoolur.github.io/lightgallery.js/) to showcase your photos. Just enable it in your configuration, and that's all!
|
||||||
|
|
||||||
```
|

|
||||||

|
|
||||||
```
|
|
||||||
|
|
||||||
### Sidebar
|
### Sidebar
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 208 KiB |
|
@ -1 +1 @@
|
||||||
Subproject commit eefaced348fade01161f9428bc818d54c59c5d35
|
Subproject commit 28eceaa527ae98352ac4a95920fdedc7f4e5fda1
|
Loading…
Reference in New Issue