{#-
  This file was automatically generated - do not edit
-#}
{% macro render_content(nav_item, ref) %}
  {% set ref = ref or nav_item %}
  <span class="md-ellipsis">
    {{ ref.title or nav_item.title }}
  </span>
{% endmacro %}
{% macro render(nav_item, ref) %}
  {% set ref = ref or nav_item %}
  {% if nav_item.children %}
    {% set _ = namespace(index = none) %}
    {% if "navigation.indexes" in features %}
      {% for item in nav_item.children %}
        {% if item.is_index and _.index is none %}
          {% set _.index = item %}
        {% endif %}
      {% endfor %}
    {% endif %}
    {% set index = _.index %}
    {% set first = index or nav_item.children | first %}
    {% if first.children %}
      {{ render(first, ref) }}
    {% else %}
      <li class="md-path__item">
        <a href="{{ first.url | url }}" class="md-path__link">
          {{ render_content(first, ref) }}
        </a>
      </li>
    {% endif %}
  {% else %}
    <li class="md-path__item">
      <a href="{{ nav_item.url | url }}" class="md-path__link">
        {{ render_content(first, ref) }}
      </a>
    </li>
  {% endif %}
{% endmacro %}
