From 597d710ba920dcd023e43638a2afda2b86234e3d Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Thu, 29 May 2014 20:43:40 +0200 Subject: [PATCH] pelican-bootstrap3: add gallery support --- pelican-bootstrap3/templates/article.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pelican-bootstrap3/templates/article.html b/pelican-bootstrap3/templates/article.html index e1f7f00..a8e7703 100644 --- a/pelican-bootstrap3/templates/article.html +++ b/pelican-bootstrap3/templates/article.html @@ -37,6 +37,24 @@ {{ article.content }} + + {% if article.album %} + + + {% for image in article.galleryimages %} + {% if article.gallerycaptions.get(image) %} + + {% else %} + + {% endif %} + {% if (loop.index % GALLERY_IMG_PER_ROW) == 0 %} + + + {% endif %} + {% endfor %} + + + {% endif %} {% include 'includes/related-posts.html' %}