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

PHPoole Gallery plugin.

License

Notifications You must be signed in to change notification settings

PHPoole/plugin-Gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
Oct 21, 2013
Oct 21, 2013
Oct 30, 2014
Feb 4, 2014

Repository files navigation

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 %}

Releases

No releases published

Packages

No packages published

Languages