{% comment %} Category directory used by the list-collections template. {% endcomment %}

{{ 'category_directory.heading' | t }}

{% capture category_cards %} banner-limpia.avif|/collections/1-limpia|{{ 'category_directory.clean_title' | t }}|{{ 'category_directory.clean_text' | t }} ---banner-trata.avif|/collections/2-trata|{{ 'category_directory.treat_title' | t }}|{{ 'category_directory.treat_text' | t }} ---banner-hidrata.avif|/collections/3-hidrata|{{ 'category_directory.hydrate_step_title' | t }}|{{ 'category_directory.hydrate_step_text' | t }} ---banner-protectores.avif|/collections/4-protege-bloqueadores-solares|{{ 'category_directory.protect_title' | t }}|{{ 'category_directory.protect_text' | t }} ---banner-hidratantes.avif|/collections/hidratantes|{{ 'category_directory.moisturizers_title' | t }}|{{ 'category_directory.moisturizers_text' | t }} ---banner-mascarillas.avif|/collections/mascarillas|{{ 'category_directory.masks_title' | t }}|{{ 'category_directory.masks_text' | t }} ---banner-proteccion-solar.avif|/collections/proteccion-solar-1|{{ 'category_directory.sun_title' | t }}|{{ 'category_directory.sun_text' | t }} ---banner-limpiadores.avif|/collections/limpiadores|{{ 'category_directory.cleansers_title' | t }}|{{ 'category_directory.cleansers_text' | t }} ---banner-serums.avif|/collections/serum|{{ 'category_directory.serum_title' | t }}|{{ 'category_directory.serum_text' | t }} ---banner-preocupacion-acne.avif|/collections/acne-1|{{ 'category_directory.acne_title' | t }}|{{ 'category_directory.acne_text' | t }} ---banner-antiedad.avif|/collections/antiedad-1|{{ 'category_directory.aging_title' | t }}|{{ 'category_directory.aging_text' | t }} ---banner-control-grasa.avif|/collections/control-grasa|{{ 'category_directory.oil_title' | t }}|{{ 'category_directory.oil_text' | t }} ---banner-preocupacion-hidratacion.avif|/collections/hidratacion|{{ 'category_directory.hydration_title' | t }}|{{ 'category_directory.hydration_text' | t }} ---banner-preocupacion-solar.avif|/collections/proteccion-solar-1|{{ 'category_directory.sun_title' | t }}|{{ 'category_directory.sun_text' | t }} ---banner-manchas.avif|/collections/aclarar|{{ 'category_directory.spots_title' | t }}|{{ 'category_directory.spots_text' | t }} ---banner-piel-grasa.avif|/collections/piel-grasa|{{ 'category_directory.oily_title' | t }}|{{ 'category_directory.oily_text' | t }} ---banner-piel-mixta-grasa.avif|/collections/piel-mixta-grasa|{{ 'category_directory.combination_title' | t }}|{{ 'category_directory.combination_text' | t }} ---banner-piel-seca.avif|/collections/piel-seca-1|{{ 'category_directory.dry_title' | t }}|{{ 'category_directory.dry_text' | t }} {% endcapture %} {% assign category_rows = category_cards | split: '---' %} {% for category_row in category_rows %} {% assign category_parts = category_row | strip | split: '|' %} {% if category_parts.size > 3 %} {% render 'category-card', image: category_parts[0], url: category_parts[1], title: category_parts[2], text: category_parts[3] %} {% endif %} {% endfor %}
{% schema %} { "name": "t:general.collections_grid", "settings": [ { "type": "select", "id": "grid_item_width", "label": "t:labels.grid_item_width", "options": [ { "value": "collections--compact", "label": "t:options.size.small" }, { "value": "collections--full", "label": "t:options.size.large" } ], "default": "collections--full" }, { "type": "range", "id": "grid_gap", "label": "t:labels.grid_gap", "min": 0, "max": 50, "step": 5, "unit": "px", "default": 10 } ], "presets": [{ "name": "t:general.collections_grid" }] } {% endschema %}