/TinySliderPublishPlugin

Plugin with TinySlider that allows you to embed the slider with pictures in your posts

Primary LanguageSwiftBSD 2-Clause "Simplified" LicenseBSD-2-Clause

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](/img/one.jpg)
3. ![two](/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"),
    // ...
])