From 4aa79a46be9c60d8f32fa45f88baae0cb9c22de0 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Mon, 3 Dec 2018 17:27:28 +0100 Subject: [PATCH] Fix gallery shortcode --- docs/templates/shortcodes/gallery.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/templates/shortcodes/gallery.html b/docs/templates/shortcodes/gallery.html index d2afc716..a9261e99 100644 --- a/docs/templates/shortcodes/gallery.html +++ b/docs/templates/shortcodes/gallery.html @@ -1,8 +1,8 @@ -{% for asset in page.assets %} - {% if asset is ending_with(".jpg") %} - - +{% for asset in page.assets -%} + {%- if asset is ending_with(".jpg") -%} + +   - {% endif %} -{% endfor %} + {%- endif %} +{%- endfor %}