NAME
Dancer2::Plugin::LiteBlog::Caroussel - A slider widget for Liteblog
DESCRIPTION
This is basically the same as the Splash widget, but you can provide an array of slides and it will be possible for the user to slide in and out.
CONFIGURATION
The Widget looks for its configuration under the liteblog
entry of the Dancer2 application.
It can be used either with a single entry, like so:
liteblog:
...
widgets:
- name: caroussel
params:
slides:
- title: "This is slide 1"
image: '/images/foo.jpg'
baseline: "Some baseline"
cta:
label: "Subscribe to my Newsletter" # label of the button
link: "/subscribe" # the URL of the button
- title: "This is slide 2"
image: '/images/foo.jpg'
baseline: "Some baseline"
cta:
label: "Subscribe to my Newsletter" # label of the button
link: "/subscribe" # the URL of the button
Supported params are listed below.
title
A big title on centered on the slide.
image
A background image supposed to fill all the screen.
baseline
A subtitle of the slide.
content
Any content in HTML you want to add.
youtube
If provided, the value is expected to be a Youtube video ID. A YouTube iframe player will be rendered (witout autoplay).
cta
A hash with link
and label
values, to generate a call-to-action button.