Swiftpack.co - Package - CoolONEOfficial/TinySliderPlugin

TinySliderPublishPlugin

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/TinySliderPlugin/blob/master//img/one.jpg)
3. ![two](https://raw.github.com/CoolONEOfficial/TinySliderPlugin/blob/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"),
    // ...
])

Github

link
Stars: 1

Dependencies

Used By

Total: 0

Releases

0.1.1 - 2020-10-06 20:08:26

0.1.0 - 2020-10-06 19:56:18