{% if categories is not empty %} {% if settings.catalog.categories.structure == 'pages' %} {% for category in categories %} {% if category.images %} {% if settings.catalog.categories.display == 'column' and settings.catalog.categories.buttons.separator.enabled %} {% endif %} {% endif %} {{ category.name }}{% if category.description %} {{ category.description }}{% endif %} {% endfor %} {% elseif settings.catalog.categories.structure == 'lists' %} {% macro generate(structure, categories) %} {% for category, descendants in structure %} {% if descendants is empty %}
{{ category.name }}{% if category.description %} {{ category.description }}{% endif %}
{{ categories[category].name }}{% if category.description %} {{ categories[category].description }}{% endif %}