From c45246d128a6b1c3d08e93715e5736d2f5e4c096 Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Sat, 14 Dec 2019 22:57:20 +0100 Subject: [PATCH] Proper gallery css --- templates/macros/blog.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/macros/blog.html b/templates/macros/blog.html index 5c479cc..591f64f 100644 --- a/templates/macros/blog.html +++ b/templates/macros/blog.html @@ -24,11 +24,14 @@ {% macro render_gallery(post) %}

Gallery

-
+
{% for attachment in post.children.get("gallery").attachments.order_by("_id") %} - - + + + {% if loop.index is divisibleby(3) %} +
+ {% endif %} {% endfor %}