{#- Expects: links (list with name, url, kind). Sections as a plain list of rows. Optional: links_limit (default 10): the first rows are shown, the rest open in place under «Other sections» (
). -#} {% macro row(s) %}
  • {% set icon = s.kind %}{% set icon_cls = '' %}{% include "blocks/icon.html" %}{{ s.name }}{% set icon = 'arrow' %}{% set icon_cls = 'link-row__arrow' %}{% include "blocks/icon.html" %}
  • {% endmacro %} {% if links %} {% set ll_max = links_limit|default(10) %} {% set ll = ll_max if links|length > ll_max + 1 else links|length %} {% endif %}