From 3ceb2f7847f1c9f17cc0c25836d4c31eb8dc3093 Mon Sep 17 00:00:00 2001 From: Said Tahsin Dane Date: Mon, 23 Feb 2015 16:09:51 +0200 Subject: [PATCH] Fix in the rockstar count. --- _layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index e118bd6..9f7abc7 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -95,7 +95,7 @@ layout: compress rockstarSpeakers.sort(function() {return 0.5 - Math.random()}); if(rockstarSpeakers.length > 0) { var animationDelay = 1500, - count = {{ site.rockstarSpeakersCount }}, + count = Math.min({{ site.rockstarSpeakersCount }}, rockstarSpeakers.length), colWidth = 12/count; for(i=0; i