{{ page.title }}

{% if settings.collection_description_position == "under-title" %} {% if page.content != blank %}
{{ page.content }}
{% endif %} {% endif %}
{% if settings.collection_description_position == "under-title-filters" %}
{% if page.content != blank %}
{{ page.content }}
{% endif %}
{% endif %}
{% comment %} Collections are listed here. {% endcomment %} {% capture uses_minimal_framework %}{% include 'product-loop' %}{% endcapture %} {% if uses_minimal_framework contains 'Liquid error' %} {% assign uses_minimal_framework = false %} {% assign grid_item_width = 'grid-custom-collection' %} {% else %} {% assign uses_minimal_framework = true %} {% assign grid_item_width = 'span3' %} {% endif %} {% assign image_size = 'large' %} {% if linklists[page.handle].links.size > 0 %} {% assign number_of_links = 0 %} {% assign number_rows = 1 %}
{% for link in linklists[page.handle].links %} {% if link.type == 'collection_link' %} {% comment %} If we have a collection link. {% endcomment %} {% assign collection = link.object %} {% assign number_of_links = number_of_links | plus: 1 %}
{% if featured_collection == empty %} {% assign block_title = 'homepage.onboarding.collection_title' | t %} {% assign image_src = '' %} {% else %} {% assign block_title = featured_collection.title %} {% if featured_collection.image %} {% assign image_src = featured_collection.image.src | img_url: '480x480' %} {% else %} {% assign image_src = featured_collection.products.first.featured_image | img_url: '480x480' %} {% endif %} {% endif %} {% comment %} {% endcomment %} {% if featured_collection.image %} {% assign image_src = featured_collection.image %} {% else %} {% assign image_src = featured_collection.products.first.featured_image %} {% endif %} {% if stretch_collection_image and featured_collection == empty %}
{{ 'collection-' | append: current | placeholder_svg_tag: 'placeholder-svg' }}
{% endif %} {% unless stretch_collection_image %} {% unless image_src == blank %} {% if image_src.aspect_ratio < 1.0 %} {% assign maximum_width = height | times: image_src.aspect_ratio %} {% if image_src.height <= height %} {% assign maximum_height = image_src.height %} {% assign maximum_width = image_src.width %} {% else %} {% assign maximum_height = height %} {% endif %} {% else %} {% assign maximum_height = height | divided_by: image_src.aspect_ratio %} {% if image_src.width <= height %} {% assign maximum_height = image_src.height %} {% assign maximum_width = image_src.width %} {% else %} {% assign maximum_width = height %} {% assign maximum_height = maximum_width | divided_by: image_src.aspect_ratio %} {% endif %} {% endif %} {% else %} {% assign maximum_width = height %} {% assign maximum_height = height %} {% endunless %}
{% endunless %}
{% if uses_minimal_framework %} {% cycle 'clear-item': '', '', '', '
' %} {% endif %} {% elsif link.type == 'page_link' %} {% comment %} If we have a page link. {% endcomment %} {% assign number_of_links = number_of_links | plus: 1 %} {% assign linked_page = link.object %} {% assign have_image = false %} {% comment %} Does the page contain an image? If so, let's use it. {% endcomment %} {% if linked_page.content contains ' 0 and linklists[linked_page.handle].links.first.type == 'collection_link' %} {% assign have_image = true %} {% assign collection = linklists[linked_page.handle].links.first.object %} {% if collection.image %} {% assign src = collection | img_url: image_size %} {% else %} {% assign src = collection.products.first | img_url: image_size %} {% endif %} {% endif %} {% if uses_minimal_framework %} {% cycle 'clear-item': '', '', '', '
' %} {% endif %} {% endif %} {% endfor %}
{% if settings.collection_description_position == "under-collection" %} {% if page.content != blank %}
{{ page.content }}
{% endif %} {% endif %}
{% if number_of_links == 0 %}

There are no links of type Collection in your {{ page.title }} link list. Go ahead and edit your link list to use links that point to collections.

{% endif %} {% else %}

You do not have a link list with a handle set to {{ page.handle }}, or you do and it's empty. Go ahead and create a link list called {{ page.title }} on your Navigation page and populate that link list with links that point to collections, to see collections listed here. Make sure the link list also has a handle set to {{ page.handle }}.

{% endif %} {% if settings.show_description_accordion %} {% include 'collection-accordion' %} {% endif %} {% section 'page-custom-collection' %}