2019-09-28 20:42:54 +03:00
|
|
|
{#-
|
|
|
|
This file was automatically generated - do not edit
|
|
|
|
-#}
|
2023-07-05 18:39:33 +03:00
|
|
|
{% macro render_content(nav_item, ref = nav_item) %}
|
|
|
|
{% if nav_item == ref or "navigation.indexes" in features %}
|
|
|
|
{% if nav_item.is_index and nav_item.meta.icon %}
|
|
|
|
{% include ".icons/" ~ nav_item.meta.icon ~ ".svg" %}
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{{ ref.title }}
|
|
|
|
{% endmacro %}
|
|
|
|
{% macro render(nav_item, ref = nav_item) %}
|
2020-12-20 17:00:21 +03:00
|
|
|
{% set class = "md-tabs__link" %}
|
2023-07-05 18:39:33 +03:00
|
|
|
{% if ref.active %}
|
2020-12-20 17:00:21 +03:00
|
|
|
{% set class = class ~ " md-tabs__link--active" %}
|
|
|
|
{% endif %}
|
|
|
|
{% if nav_item.children %}
|
2023-07-05 18:39:33 +03:00
|
|
|
{% set first = nav_item.children | first %}
|
|
|
|
{% if first.children %}
|
|
|
|
{{ render(first, ref) }}
|
|
|
|
{% else %}
|
|
|
|
<li class="md-tabs__item">
|
|
|
|
<a href="{{ first.url | url }}" class="{{ class }}">
|
|
|
|
{{ render_content(first, ref) }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2019-06-15 16:16:14 +03:00
|
|
|
{% else %}
|
|
|
|
<li class="md-tabs__item">
|
2020-12-20 17:00:21 +03:00
|
|
|
<a href="{{ nav_item.url | url }}" class="{{ class }}">
|
2023-07-05 18:39:33 +03:00
|
|
|
{{ render_content(nav_item) }}
|
2020-11-07 18:09:06 +03:00
|
|
|
</a>
|
2019-06-15 16:16:14 +03:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
2023-07-05 18:39:33 +03:00
|
|
|
{% endmacro %}
|