Skip to content

Commit ee9e0e4

Browse files
committed
Use modulo for connect page rows
1 parent e8c7bcf commit ee9e0e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_layouts/connect.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<div class="columns is-desktop">
77
{% assign i = 0 %}
88
{% for channel in channel_list %}
9-
{% if i == 3 %}
9+
{% assign remainder = i | modulo: 3 %}
10+
{% if remainder == 0 %}
1011
</div>
1112
<div class="columns">
1213
{% endif %}

0 commit comments

Comments
 (0)