A very simple Jekyll tag for including lightbox images in your jekyll powered website.
lightbox.rb
file to your Jekyll _plugins
folderUse this plugin as a Jekyll tag in any of your pages as follows:
{% lightbox images/appfoundry.png --thumb="images/appfoundry-thumb.png" --data="appfoundry_image_set" --title="The AppFoundry Logo" --alt="This is our logo" --img-style="max-width:80%;" --class="yourclass" %}
This will ouput:
<a href="../images/appfoundry.png" data-lightbox="appfoundry_image_set" data-title="The AppFoundry Logo">
<img src="../images/appfoundry-thumb.png" alt="This is our logo" class="yourclass" style="max-width:80%;"/>
</a>
The options explained:
data-lightbox
attributedata-title
attributealt
value. If ommitted, the value of title
is usedCSS
you would like to apply to your imageFeel free to email bart@appfoundry.be with questions or comments.
This project is licensed under the terms of the MIT license.