Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix use separator
  • Loading branch information
artofthesmart committed May 13, 2019
1 parent 328335d commit 38711cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/partials/navigation.html.twig
Expand Up @@ -11,7 +11,7 @@
{% if structure.inlineNavbar %}
{% for child in pages.children.visible %}
<a href="{{ child.url }}"{{ (child.active or child.activeChild) ? ' class="current"' :'' }}>{{ child.menu }}</a>
{% if menu.useSeparator %}
{% if structure.useSeparator %}
{{ not loop.last or menu.menuItems|length >= 1 ? '|' : '' }}
{% endif %}
{% endfor %} {# End child pages loop #}
Expand All @@ -26,7 +26,7 @@
{{ menuItem.isOffsite ? 'class="offsite"' : '' }}
{{ menuItem.target ? 'target="%s" '|format(menuItem.target) : '' }}
{{ menuItem.isNewWindow ? 'target="_blank"' : '' }}>{{ menuItem.text}}</a>
{% if menu.useSeparator %}
{% if structure.useSeparator %}
{{ not loop.last ? '|' : '' }}
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 38711cf

Please sign in to comment.