mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2024-12-21 21:55:26 -05:00
21 lines
663 B
HTML
21 lines
663 B
HTML
{% macro render(nav_item, ref = nav_item) %}
|
|
{% if nav_item.children %}
|
|
{% set first = nav_item.children | first %}
|
|
{% if first.children %}
|
|
{{ render(first, ref) }}
|
|
{% else %}
|
|
<a href="{{ first.canonical_url | url }}" class="md-path__link" property="item" typeof="WebPage">
|
|
<span class="md-ellipsis" property="name">
|
|
{{ ref.title }}
|
|
</span>
|
|
</a>
|
|
{% endif %}
|
|
{% else %}
|
|
<a href="{{ nav_item.canonical_url | url }}" class="md-path__link" property="item" typeof="WebPage">
|
|
<span class="md-ellipsis" property="name">
|
|
{{ ref.title }}
|
|
</span>
|
|
</a>
|
|
{% endif %}
|
|
{% endmacro %}
|