improve menu template
This commit is contained in:
parent
5e7107dafc
commit
5cbb126c61
1 changed files with 6 additions and 3 deletions
|
@ -6,9 +6,12 @@
|
||||||
{% if not mapping.list_childs %}
|
{% if not mapping.list_childs %}
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
{% if this._path == mapping.href %} class="active"
|
{% if this._path == mapping.href %} class="active" {% endif %}
|
||||||
{% endif %} {{- ' ' -}}
|
{% if mapping.external | default(false) %}
|
||||||
href="{{ mapping.href|url }}">
|
href="{{ mapping.href }}" target="_blank" rel="noopener noreferrer"
|
||||||
|
{% else %}
|
||||||
|
href="{{ mapping.href | url }}"
|
||||||
|
{% endif %}>
|
||||||
{{- title -}}
|
{{- title -}}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in a new issue