2023-03-21 16:56:27 -05:00
|
|
|
<!-- {#
|
2025-08-12 01:55:49 -05:00
|
|
|
SPDX-FileCopyrightText: 2016 Martin Donath <martin.donath@squidfunk.com>
|
|
|
|
SPDX-FileCopyrightText: 2023 Jonah Aragon <jonah@privacyguides.org>
|
2023-03-21 16:56:27 -05:00
|
|
|
|
2025-08-12 01:55:49 -05:00
|
|
|
SPDX-License-Identifier: MIT OR LicenseRef-MIT-mkdocs-material
|
2023-03-21 16:56:27 -05:00
|
|
|
#} -->
|
2023-10-04 15:02:24 -05:00
|
|
|
|
2023-03-05 13:37:36 -06:00
|
|
|
{% import "partials/path-item.html" as item with context %}
|
2023-10-04 15:02:24 -05:00
|
|
|
|
|
|
|
<!-- Determine whether to show navigation path -->
|
2023-03-05 13:37:36 -06:00
|
|
|
{% if page.meta and page.meta.hide %}
|
|
|
|
{% set hidden = "hidden" if "path" in page.meta.hide %}
|
|
|
|
{% endif %}
|
2023-10-04 15:02:24 -05:00
|
|
|
|
|
|
|
<!-- Determine whether we have enough pages for rendering -->
|
2023-03-05 13:37:36 -06:00
|
|
|
{% set depth = page.ancestors | length %}
|
|
|
|
{% if nav.homepage %}
|
|
|
|
{% set depth = depth + 1 %}
|
|
|
|
{% endif %}
|
2023-10-04 15:02:24 -05:00
|
|
|
|
|
|
|
<!-- Navigation path (breadcrumbs) -->
|
2023-03-05 13:37:36 -06:00
|
|
|
{% if depth > 1 %}
|
|
|
|
{% set count = namespace(value=1) %}
|
|
|
|
<nav class="md-path" aria-label="{{ lang.t('nav') }}" {{ hidden }}>
|
|
|
|
<ol class="md-path__list" vocab="https://schema.org/" typeof="BreadcrumbList">
|
|
|
|
{% if nav.homepage %}
|
|
|
|
<li class="md-path__item" property="itemListElement" typeof="ListItem">
|
|
|
|
{{ item.render(nav.homepage) }}
|
|
|
|
<meta property="position" content="{{ count.value }}">
|
|
|
|
{% set count.value = count.value + 1 %}
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% for nav_item in page.ancestors | reverse %}
|
|
|
|
<li class="md-path__item" property="itemListElement" typeof="ListItem">
|
|
|
|
{{ item.render(nav_item) }}
|
|
|
|
<meta property="position" content="{{ count.value }}">
|
|
|
|
{% set count.value = count.value + 1 %}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
<li property="itemListElement" typeof="ListItem" hidden>
|
|
|
|
<meta property="name" content="{{ page.title }}">
|
|
|
|
<meta property="position" content="{{ count.value }}">
|
|
|
|
</li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|