We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcde07d commit bda1c8aCopy full SHA for bda1c8a
docs/overrides/partials/nav.html
@@ -1,3 +1,5 @@
1
+{% import "partials/nav-item.html" as item with context %}
2
+
3
<!-- Determine class according to configuration -->
4
{% set class = "md-nav md-nav--primary" %}
5
{% if "navigation.tabs" in features %}
@@ -35,12 +37,11 @@
35
37
</div>
36
38
{% endif %}
39
- <!-- Render item list -->
40
+ <!-- Navigation list -->
41
<ul class="md-nav__list" data-md-scrollfix>
42
{% for nav_item in nav %}
43
{% set path = "__nav_" ~ loop.index %}
- {% set level = 1 %}
- {% include "partials/nav-item.html" %}
44
+ {{ item.render(nav_item, path, 1) }}
45
{% endfor %}
46
</ul>
47
requirements.txt
@@ -29,4 +29,4 @@ watchgod==0.8.2
29
30
# Documentation
31
mkdocs==1.5.3
32
-mkdocs-material==9.1.21
+mkdocs-material==9.5.5
0 commit comments