hexo-gallery-slider
v1.2.7
Published
A responsive gallery slider plugin for Hexo
Readme
hexo-gallery-slider
A responsive gallery slider plugin for Hexo that creates image and video galleries in your posts.
Features
- Touch-friendly navigation.
- Smooth transitions.
- Pagination dots.
- Image counter display.
- Previous/Next navigation buttons.
- Support for both single images and multiple image galleries.
- Automatic FontAwesome integration.
Installation
npm install hexo-gallery-slider --saveDependencies
This plugin requires hexo-fontawesome for navigation icons. It will be automatically installed as a dependency.
Usage
Basic Gallery
To create a gallery with multiple images:
{% gallery image1.jpg image2.jpg image3.jpg %}Single Image
For a single image with the gallery styling:
{% gallery image.jpg %}Video Support
The plugin also supports MP4 videos:
{% gallery video.mp4 %}Or mix videos and images in a gallery:
{% gallery image1.jpg video.mp4 image2.jpg %}File Paths
Use relative paths from your post's location.
License
MIT
