<div class="site-block catalog">
<div class="container">
<div class="catalog-categories">
{% for item in page.childrens|filter(v => v.isActive) %}
<div class="catalog__item catalog__item_gray catalog__item_category">
{% if item.image %}
<a href="{{ item.uri }}" class="item__icon">
<img src="{{ item.image }}" alt="{{ item.name }}">
</a>
{% endif %}
{% set childrens = item.childrens|filter(v => v.isActive) %}
{% if childrens|length > 0 %}
<div class="item__list">
{% for child in childrens %}
<a href="{{ child.uri }}">{{ child.name }}</a>
{% endfor %}
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>