File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 6969
7070 < ul class ="md-nav__list " data-md-scrollfix >
7171 <!-- All NAVS: {{ nav.children }} -->
72- {% for nav_item in nav.children %}
73- <!-- nav item: {{ nav_item }} -->
74- {% set path = "__nav_" ~ loop.index %}
75- {{ item.render(nav_item, path, 1) }}
76- {% endfor %}
72+ {% if nav.children %}
73+ {% for nav_item in nav.children %}
74+ <!-- nav item: {{ nav_item }} -->
75+ {% set path = "__nav_" ~ loop.index %}
76+ {{ item.render(nav_item, path, 1) }}
77+ {% endfor %}
78+ {% endif %}
7779 </ ul >
7880</ nav >
Original file line number Diff line number Diff line change 3535 {% set nav = section.children %}
3636 {% endif %}
3737
38- {% if nav | length > 1 %}
38+ {% if nav and nav | length > 1 %}
3939 < div class ="md-grid ">
4040 < ul class ="md-tabs__list " id ="sub-nav ">
4141 {% for nav_item in nav %}
4444 </ ul >
4545 </ div >
4646 {% endif %}
47- </ nav >
47+ </ nav >
You can’t perform that action at this time.
0 commit comments