From e8748d9e3035651dd4cdc4a4c60cd91a9e4a633c Mon Sep 17 00:00:00 2001 From: Chris Lowis Date: Fri, 30 Nov 2018 13:02:21 +0000 Subject: [PATCH] Add a sum of all members to the homepage This replaces the hard-corded number we were using previously. --- index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 231b204..c5b1b3e 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,11 @@ layout: home
Staff
-
253+
+ {% assign total_members = 0 %} + {% for coop in site.coops %} + {% assign total_members = total_members | plus: coop.members %} + {% endfor %} +
{{ total_members }}+