From 4a39b82795394152e0f06bfe44f013d86c8f37d6 Mon Sep 17 00:00:00 2001 From: Ian Lee Date: Sat, 9 Apr 2016 15:20:13 -0700 Subject: [PATCH] Fixed bug with include when using.size == 1 If using.size is 1, then the resulting html would be "and PROJECT use the ..." without anything being listed before the "and". --- _includes/using-sentence.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/using-sentence.html b/_includes/using-sentence.html index 94bea5f..79cf7f1 100644 --- a/_includes/using-sentence.html +++ b/_includes/using-sentence.html @@ -5,7 +5,7 @@ {% if using.size > 0 %} {% for used in using limit: 3 %} {% assign last = forloop.last %} - {% if last %} + {% if last and using.size > 1 %} and {% endif %} {% for hash in used %}