From 3fe927c023b5c3511b021ea4ea5b2c9343d38fb4 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 20 Jul 2016 16:05:31 -0400 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 = '' %}