File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ permalink: /team/
13
13
{% assign active_contrib = site.data.contributors | where: "active", "1" %}
14
14
{% assign past_contrib = site.data.contributors | where_exp: "item", "item.active == nil" %}
15
15
16
- {% assign number_printed = 0 %}
17
16
{% for member in active_contrib %}
18
- {% assign even_odd = number_printed | modulo: 2 %}
17
+ {% assign even_odd = forloop.index0 | modulo: 2 %}
19
18
20
19
{% if even_odd == 0 %}
21
20
<div class =" row " >
@@ -60,8 +59,6 @@ permalink: /team/
60
59
{% endfor %}
61
60
</div >
62
61
63
- {% assign number_printed = number_printed | plus: 1 %}
64
-
65
62
{% if even_odd == 1 %}
66
63
</div >
67
64
{% endif %}
@@ -76,9 +73,8 @@ permalink: /team/
76
73
<div class =" clearfix " >
77
74
78
75
79
- {% assign number_printed = 0 %}
80
76
{% for member in past_contrib %}
81
- {% assign even_odd = number_printed | modulo: 2 %}
77
+ {% assign even_odd = forloop.index0 | modulo: 2 %}
82
78
83
79
{% if even_odd == 0 %}
84
80
<div class =" row " >
@@ -101,8 +97,6 @@ permalink: /team/
101
97
{% endif %}
102
98
</div >
103
99
104
- {% assign number_printed = number_printed | plus: 1 %}
105
-
106
100
{% if even_odd == 1 %}
107
101
</div >
108
102
You can’t perform that action at this time.
0 commit comments