{% paginate collection.products by 20 %}

{{ collection.title }} {% if current_tags %} – {% assign title_tags = current_tags | join: ', ' %} {{ title_tags }} {% endif %}

{% if collection.description != blank %}
{{ collection.description }}
{% endif %}
{% section 'collection-filters' %}
{% for product in collection.products %}
{% include 'product-card', product: product %}
{% else %} {% comment %} Add default products to help with onboarding for collections/all only. The onboarding styles and products are only loaded if the store has no products. {% endcomment %} {% if shop.products_count == 0 %}
{% assign collection_index = 1 %} {% for i in (1..10) %} {% case i %} {% when 7 %} {% assign collection_index = 1 %} {% when 8 %} {% assign collection_index = 2 %} {% when 9 %} {% assign collection_index = 3 %} {% when 10 %} {% assign collection_index = 4 %} {% endcase %} {% assign collection_index = collection_index | plus: 1 %} {% endfor %}
{% else %} {% comment %} If collection exists but is empty, display message {% endcomment %}

{{ 'collections.general.no_matches' | t }}

{% endif %} {% endfor %}
{% if paginate.pages > 1 %} {% endif %}
{% endpaginate %}