{% assign counter = 0 %} {% capture list %} {% for c in collections %} {% if c.handle contains collection.handle and c.handle != collection.handle %}
  • {{ c.title }}
  • {% capture temp %}{{ counter | plus: 1 }}{% endcapture %} {% assign counter = temp %} {% endif %} {% endfor %} {% endcapture %} {% unless counter == 0 %}
      {{ list }}
    {% endunless %}