We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e394465 commit bfa20e4Copy full SHA for bfa20e4
docs/theme/partials/nav.html
@@ -18,6 +18,7 @@
18
-->
19
20
<!-- Determine class according to configuration -->
21
+{% import "partials/nav-item.html" as item with context %}
22
{% set class = "md-nav md-nav--primary" %}
23
{% if "navigation.tabs" in features %}
24
{% set class = class ~ " md-nav--lifted" %}
@@ -45,8 +46,7 @@
45
46
<ul class="md-nav__list" data-md-scrollfix>
47
{% for nav_item in nav %}
48
{% set path = "__nav_" ~ loop.index %}
- {% set level = 1 %}
49
- {% include "partials/nav-item.html" %}
+ {{ item.render(nav_item, path, 1) }}
50
{% endfor %}
51
<li class="community-callout-wrapper">
52
<div class="community-callout">
0 commit comments