From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Dancer2::Plugin::LiteBlog::Splash - A welcome and call-to-action widget for Liteblog

DESCRIPTION

This widget lets you display a big splash cover image on your home page. The image takes the full widht and 80% of the visible height. The title and description of the site is displayed in the center, with big and styled fonts. A call-to-action button can also be defined.

This widget is a good way to guide your visitors to your main content on your website. It can be used to collect subscribers to a newsletter for instance, or guide visitors to a product page.

CONFIGURATION

The Widget looks for its configuration under the liteblog entry of the Dancer2 application.

liteblog:
...
widgets:
- name: splash
params:
title: "Some title" # if undefined, the liteblog's title is used
image: '/images/foo.jpg'
baseline: "Some baseline" # if not defined, liteblog's description
cta:
label: "Subscribe to my Newsletter" # label of the button
link: "/subscribe" # the URL of the button

SEE ALSO

Dancer2::Plugin::LiteBlog::Widget, Dancer2

AUTHOR

Alexis Sukrieh, sukria@gmail.com

COPYRIGHT AND LICENSE

Copyright 2023 by Alexis Sukrieh.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.