Swiftpack.co - CoolONEOfficial/TinySliderPublishPlugin as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by CoolONEOfficial.
CoolONEOfficial/TinySliderPublishPlugin 0.1.4
Plugin with TinySlider that allows you to embed the slider with pictures in your posts
⭐️ 2
🕓 1 week ago
iOS macOS
.package(url: "https://github.com/CoolONEOfficial/TinySliderPublishPlugin.git", from: "0.1.4")

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/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"),
    // ...
])

GitHub

link
Stars: 2
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Dependencies

Release Notes

0.1.4
1 week ago

Publish 0.9.0 support

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics