navigation" in item.meta.hide and not item.active)
    or
    (item.file and item.file.inclusion == item.file.inclusion.NOT_IN_NAV)
    -%}
    esi-nav-item-hidden
    {%- endif -%}
  {%- endif -%}
{%- endmacro -%}

{%- macro render_toc_item(item, level = 1) -%}
  <li>
    <a class="md-nav__link" href="{{ item.url }}">{{ title(item) }}</a>
    {%- if item.children -%}
      <ul class="esi-sidebar-nav esi-sidebar-nav-toc esi-sidebar-toc-sublevel esi-sidebar-toc-sublevel-{{ level }}">
        {%- for subitem 