Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

AlessandroLorenzi/piwigo_gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Piwigo Gallery

Jekyll plugin to generate thumbnails from a Piwigo gallery and display them with a Liquid tag

Installation

  1. Drop piwigo_gallery.rb into your Jekyll site's _plugins folder.
  2. Add the following to your _config.yml and customize to taste.
piwigo_gallery:
    baseurl: http://photos.gallery.com/piwigo/
  • baseurl — The URL to your piwigo site.

Usage

Jekyll will automatically generate (during builds) thumbnails for any images in the folder specified in _config.yml. To display them in a post, you would use a Liquid tag set up like this:

{% piwigo_gallery galleryid %}

Note

Jekyll will output some HTML that is (intentionally) similar to what WordPress does for galleries in posts, making it relatively simple to tweak your CSS. It will also add rel attributes to the links, which contain the "galleryname" text as shown in the above example. This makes is easy to integrate a lightbox script like FancyBox.

Example

You can find an example here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages