divisible by

divisible by 检查变量是否可被数字整除:

1
2
3
{% if loop.index is divisible by(3) %}
    ...
{% endif %}