Take $20 off your $100 purchase with code LOVEPASS
Cart 0
{% if settings.home_show_headings %}

{{ 'home_page.sections.featured_title' | t }}

{% endif %}
{% assign index = 0 %} {% assign limit = 3 %} {% assign query = limit | plus: 1 %} {% if settings.home_featured_collections_sort == 'manual' %} {% for i in (1..5) %} {% assign collection_setting = 'collection_' | append:i %} {% if settings[collection_setting] != blank %} {% assign index = index | plus: 1 %} {% endif %} {% endfor %} {% else %} {% for collection in collections limit:query %} {% unless index >= limit %} {% unless collection.handle == 'frontpage' %} {% assign index = index | plus: 1 %} {% endunless %} {% endunless %} {% endfor %} {% endif %} {% case index %} {% when 1 %} {% assign collection_item_width = 'one-half' %} {% assign collection_item_img_size = 'grande' %} {% when 2 %} {% assign collection_item_width = 'one-half' %} {% assign collection_item_img_size = 'grande' %} {% when 3 %} {% assign collection_item_width = 'medium-down--one-half one-third' %} {% when 4 %} {% assign collection_item_width = 'medium-down--one-half one-quarter' %} {% when 5 %} {% assign collection_item_width = 'small--one-half medium--one-third post-large--one-fifth' %} {% endcase %} {% if settings.home_featured_collections_sort == 'manual' %} {% for i in (1..5) %} {% assign collection_setting = 'collection_' | append:i %} {% if settings[collection_setting] != blank %} {% assign featured = settings[collection_setting] %} {% include 'collection-grid-item' %} {% endif %} {% endfor %} {% else %} {% assign collection_index = 0 %} {% for collection in collections limit:query %} {% unless collection_index >= limit %} {% unless collection.handle == 'frontpage' %} {% assign featured = collection.handle %} {% include 'collection-grid-item' %} {% assign collection_index = collection_index | plus: 1 %} {% endunless %} {% endunless %} {% endfor %} {% endif %} {% if index == 0 %} {% unless emptyState %} {{ 'theme-onboarding.css' | global_asset_url | stylesheet_tag }} {% assign emptyState = true %} {% endunless %} {% endif %}