{{ page.title }}
{{ page.content }}
{% 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 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 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.
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 }}.