chore: add lightgallery example

pull/701/head
ppoffice 2016-08-20 20:27:27 +08:00
parent 8c36e0d208
commit 93ca897816
4 changed files with 37 additions and 6 deletions

View File

@ -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:
![Lion](https://www.hdwallpapers.net/previews/lion-453.jpg)
or this:
![Red Panda](https://www.hdwallpapers.net/previews/red-panda-523.jpg)

View File

@ -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!
``` ![](http://ppoffice.github.io/hexo-theme-icarus/gallery/lightgallery.jpg "")
![img caption](img url)
```
### Sidebar ### Sidebar

BIN
source/gallery/lightgallery Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

@ -1 +1 @@
Subproject commit eefaced348fade01161f9428bc818d54c59c5d35 Subproject commit 28eceaa527ae98352ac4a95920fdedc7f4e5fda1