2019-09-28 19:42:54 +02:00
|
|
|
{#-
|
|
|
|
This file was automatically generated - do not edit
|
|
|
|
-#}
|
2023-07-05 17:39:33 +02: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) %}
|
2023-07-06 15:45:36 +02:00
|
|
|
{% set class = "md-tabs__item" %}
|
2023-07-05 17:39:33 +02:00
|
|
|
{% if ref.active %}
|
2023-07-06 15:45:36 +02:00
|
|
|
{% set class = class ~ " md-tabs__item--active" %}
|
2020-12-20 15:00:21 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if nav_item.children %}
|
2023-07-05 17:39:33 +02:00
|
|
|
{% set first = nav_item.children | first %}
|
|
|
|
{% if first.children %}
|
|
|
|
{{ render(first, ref) }}
|
|
|
|
{% else %}
|
2023-07-06 15:45:36 +02:00
|
|
|
<li class="{{ class }}">
|
|
|
|
<a href="{{ first.url | url }}" class="md-tabs__link">
|
2023-07-05 17:39:33 +02:00
|
|
|
{{ render_content(first, ref) }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
2019-06-15 15:16:14 +02:00
|
|
|
{% else %}
|
2023-07-06 15:45:36 +02:00
|
|
|
<li class="{{ class }}">
|
|
|
|
<a href="{{ nav_item.url | url }}" class="md-tabs__link">
|
2023-07-05 17:39:33 +02:00
|
|
|
{{ render_content(nav_item) }}
|
2020-11-07 16:09:06 +01:00
|
|
|
</a>
|
2019-06-15 15:16:14 +02:00
|
|
|
</li>
|
|
|
|
{% endif %}
|
2023-07-05 17:39:33 +02:00
|
|
|
{% endmacro %}
|