File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1010 {% if current == count - 1 %}
1111 <li>{{ path | upper }}</li>
1212 {% else %}
13- <li><a href=" {{ link }}{{ url_for(path) }}/" >{{ path | upper }}</a></li>
1413 {% if link == ' ' %}
1514 {% set link = ' /' + path %}
1615 {% else %}
1716 {% set link += ' /' + path %}
1817 {% endif %}
18+ <li><a href=" {{ url_for(link) }}/" >{{ path | upper }}</a></li>
1919 {% endif %}
2020 {% endif %}
2121 {% endfor %}
Original file line number Diff line number Diff line change 5656
5757 {# If current URL is value of parent submenu ' default' path #}
5858 {% set paths = page.path .split (' /' ) %}
59- {% for currentSubParentUrl in paths %}
60- {% if currentSubParentUrl == subvalue.default .split (' ||' )[0 ] | trim | replace (' /' , ' ' , ' g' ) %}
59+ {% if paths. length > 2 %}
60+ {% if paths[ 1 ] == subvalue.default .split (' ||' )[0 ] | trim | replace (' /' , ' ' , ' g' ) %}
6161
6262 {# Submenu-2 items #}
6363 <ul id=" sub-menu-2" class =" sub-menu menu" >
7979 {# End Submenu-2 items #}
8080
8181 {% endif %}
82- {% endfor %}
82+ {% endif %}
8383 {# End URL & path comparing #}
8484
8585 {% endif %}
You can’t perform that action at this time.
0 commit comments