5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-21 22:33:05 +00:00

Add a sum of all members to the homepage

This replaces the hard-corded number we were using previously.
This commit is contained in:
Chris Lowis 2018-11-30 13:02:21 +00:00
parent 6ba79a775d
commit e8748d9e30

View File

@ -15,7 +15,11 @@ layout: home
<div class="small-3 columns">
<img src="/app/themes/coop-tech-oowp-theme/public/img/icon-staff.png" class="float-center">
<h6>Staff</h6>
<h5>253+</h5>
{% assign total_members = 0 %}
{% for coop in site.coops %}
{% assign total_members = total_members | plus: coop.members %}
{% endfor %}
<h5>{{ total_members }}+</h5>
</div>
<div class="small-3 columns">
<img src="/app/themes/coop-tech-oowp-theme/public/img/icon-revenue.png" class="float-center">