Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layout/_partials/breadcrumb.swig
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
{% if current == count - 1 %}
<li>{{ path | upper }}</li>
{% else %}
<li><a href="{{ link }}{{ url_for(path) }}/">{{ path | upper }}</a></li>
{% if link == '' %}
{% set link = '/' + path %}
{% else %}
{% set link += '/' + path %}
{% endif %}
<li><a href="{{ url_for(link) }}/">{{ path | upper }}</a></li>
{% endif %}
{% endif %}
{% endfor %}
Expand Down
6 changes: 3 additions & 3 deletions layout/_partials/header/sub-menu.swig
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@

{# If current URL is value of parent submenu 'default' path #}
{% set paths = page.path.split('/') %}
{% for currentSubParentUrl in paths %}
{% if currentSubParentUrl == subvalue.default.split('||')[0] | trim | replace('/', '', 'g') %}
{% if paths.length > 2 %}
{% if paths[1] == subvalue.default.split('||')[0] | trim | replace('/', '', 'g') %}

{# Submenu-2 items #}
<ul id="sub-menu-2" class="sub-menu menu">
Expand All @@ -71,7 +71,7 @@
{# End Submenu-2 items #}

{% endif %}
{% endfor %}
{% endif %}
{# End URL & path comparing #}

{% endif %}
Expand Down