Generate gallery using light gallery for Hexo 图片预览 照片墙
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src add ignore & readme Aug 27, 2017 [!] update npm url Apr 4, 2018
index.js [+] init Aug 27, 2017
package.json add ignore & readme Aug 27, 2017


npm: npm

Generate gallery for Hexo


npm install --save hexo-light-gallery


This plugin is based on lightgallery.js. Once you installed, all posts will add lightgallery feature automatically.


In your site's _config.yml:

    # if you don't specify the css or js source, the default cdn will be used.
    # css: # css source url
    # js: #js source url
    # sorry that I can not find any cdn hosting following plugins,
    # please self-host the plugin js and add url here
    # plugins:
        # lg-thumbnail:
        # lg-zoom:
        # lg-autoplay:
        # lg-fullscreen:
        # lg-pager:

Your config will be merged into default config:

    js: '',
    css: '',
    plugins: {},

Lightgallery.js Plugins

Download the plugin from following source and add url to the _config.yml file will automatically enable the plugin.


Pull requests and stars are highly welcome.

For bugs and feature requests, please create an issue.