From 29a55bd10176ac5b802d0bb1ec4e8802e16bd1f8 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Sat, 30 Aug 2014 23:12:29 +0200 Subject: [PATCH] Flowing layout for the galleries --- pelican-bootstrap3/templates/article.html | 98 +++++++++-------------- 1 file changed, 36 insertions(+), 62 deletions(-) diff --git a/pelican-bootstrap3/templates/article.html b/pelican-bootstrap3/templates/article.html index 640c8c9..1796d8c 100644 --- a/pelican-bootstrap3/templates/article.html +++ b/pelican-bootstrap3/templates/article.html @@ -37,73 +37,47 @@ {{ article.content }} - {% if article.album %} - - + - {% if (loop.index % GALLERY_IMG_PER_ROW) == 0 %} - - + + {% if article.galleryexif.get(image).get("Model") %} + + {% endif %} + {% if article.galleryexif.get(image).get("LensModel") %} + + {% endif %} + + {% if article.galleryexif.get(image).get("ISOSpeedRatings") %} + + {% endif %} + {% if article.galleryexif.get(image).get("FocalLength") %} + + {% endif %} + {% if article.galleryexif.get(image).get("FNumber") %} + + {% endif %} + {% if article.galleryexif.get(image).get("ExposureTime") %} + + {% endif %} + +
{{article.galleryexif.get(image).get("Model")}}
{{article.galleryexif.get(image).get("LensModel")}}
{{article.galleryexif.get(image).get("ISOSpeedRatings")}}{{article.galleryexif.get(image).get("FocalLength")}}mmf/{{article.galleryexif.get(image).get("FNumber")}}{{article.galleryexif.get(image).get("ExposureTime")}}
{% endif %} +

{% if article.gallerycomments.get(image) %}{{ article.gallerycomments.get(image) }}{% endif %}

+ + {% endfor %} - {% if (article.galleryimages.__len__() % GALLERY_IMG_PER_ROW) != 0 %} - - {% endif %} - - + + {% endif %}