From ba5a0a30e7e4b7a437d7989908e40cdd5079aaab Mon Sep 17 00:00:00 2001 From: jluccisano Date: Sun, 12 Feb 2017 17:22:00 +0100 Subject: [PATCH] Fix gallery size bug - Improperly evaluated size of gallery arrays as strings and not integers - Close #402 --- _includes/gallery | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/_includes/gallery b/_includes/gallery index d84541457984..4d271ee92b80 100644 --- a/_includes/gallery +++ b/_includes/gallery @@ -6,11 +6,9 @@ {% assign gallery = page.gallery %} {% endif %} -{% capture gallery_size %}{{ gallery | size }}{% endcapture %} - -{% if gallery_size == '2' %} +{% if gallery.size == 2 %} {% assign gallery_layout = 'half' %} -{% elsif gallery_size >= '3' %} +{% elsif gallery.size >= 3 %} {% assign gallery_layout = 'third' %} {% else %} {% assign gallery_layout = '' %}