Answers for "liquid odd"

0

liquid odd

{% for item in site.posts %}
    {% assign mod = forloop.index | modulo: 2 %}
    {% if mod == 0 %}
        <!-- even -->
    {% else %}
        <!-- odd -->
    {% endif %}
{% endfor %}
Posted by: Guest on December-14-2020

Browse Popular Code Answers by Language