A plugin for Publish that let's you easily use TinySlider in your posts.
To embed a slider in your post, use a list with images in markdown, but add the config at first list item, like so:
...
1. { "items": 2, "slideBy": "page", "mouseDrag": true, "swipeAngle": false, "controls": false, "nav": false}
2. ![one](https://raw.github.com/CoolONEOfficial/TinySliderPublishPlugin/master//img/one.jpg)
3. ![two](https://raw.github.com/CoolONEOfficial/TinySliderPublishPlugin/master//img/two.jpg)
...
To install the plugin, add it to your site's publishing steps:
try mysite().publish(using: [
.tinySlider(jsPath: "/modules/tiny-slider/src/tiny-slider.js"),
// ...
])
link |
Stars: 2 |
Last commit: 41 weeks ago |
0.1.5 Added minimized images config
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics