File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 27
27
{%- set classes = classes | merge ([options .lastClass ]) %}
28
28
{%- endif %}
29
29
30
+ {%- set target = item .linkAttributes and item .linkAttributes ['target' ] ? item .linkAttributes ['target' ] : ' _self' %}
31
+
30
32
{% set is_active = matcher.isCurrent (item ) or matcher.isAncestor (item , options .matchingDepth ) or item.getExtra (' always_open' ) %}
31
33
32
34
{# Mark item as "leaf" (no children) or as "branch" (has children that are displayed) #}
60
62
</li >
61
63
{% else %}
62
64
<li class =" nav-item" >
63
- <a class =" nav-link" href =" {{ item .uri }}" >
65
+ <a class =" nav-link" href =" {{ item .uri }}" target = " {{ target }} " >
64
66
<span class =" nav-link-icon d-md-none d-lg-inline-block" >
65
67
{{ block (' icon' ) }}
66
68
</span >
67
69
<span class =" nav-link-title" >
68
- {{ item .label | trans }}
70
+ {{ item .label | trans }} {% if target == ' _blank ' %}{{ ux_icon( ' tabler:external-link ' , { ' class ' : ' icon icon-sm ms-1 mb-2 opacity-75 ' }) }}{% endif %}
69
71
</span >
70
72
</a >
71
73
</li >
You can’t perform that action at this time.
0 commit comments