{%- macro title(item) -%}
  {{ item.title }}
{%- endmacro -%}

{%- macro classes(item) -%}
  {%- if item.children -%}
    {%- set first = item.children | first -%}
    {%- if first -%}
    {%- if
      (first.meta and first.meta.hide and "navigation" in first.meta.hide and not first.active)
      or
      (first.file and first.file.inclusion == first.file.inclusion.NOT_IN_NAV)
    -%}
    esi-nav-item-hidden
    {%- endif -%}
    {% endif %}
  {%- else -%}
    {%- if 
    (item.meta and item.meta.hide and "