Skip to content
This repository was archived by the owner on Dec 10, 2017. It is now read-only.

Latest commit

 

History

History
32 lines (21 loc) · 689 Bytes

File metadata and controls

32 lines (21 loc) · 689 Bytes

PHPoole Gallery plugin.

Installation

cd _phpoole
php composer.phar require phpoole/plugin-gallery:@dev --prefer-dist

Usage

Front matter

Add a gallery entry to the front matter of a page:

gallery = "local/path/to/images/dir"

Layout samples

Galleries list

{% for gallery in site.pages('galleries') %}
<ul>
	<li><a href="{{ site.base_url }}/{{ gallery.path }}">{{ gallery.title }}</a></li>
</ul>
{% endfor %}

Gallery page

{% for image in page.gallery %}
<p><img src="{{ site.base_url }}/{{ page.path }}/{{ image.name }}" class="img-responsive" /></p>
{% endfor %}