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 %}
|
||||
<li>
|
||||
<a
|
||||
{% if this._path == mapping.href %} class="active"
|
||||
{% endif %} {{- ' ' -}}
|
||||
href="{{ mapping.href|url }}">
|
||||
{% if this._path == mapping.href %} class="active" {% endif %}
|
||||
{% if mapping.external | default(false) %}
|
||||
href="{{ mapping.href }}" target="_blank" rel="noopener noreferrer"
|
||||
{% else %}
|
||||
href="{{ mapping.href | url }}"
|
||||
{% endif %}>
|
||||
{{- title -}}
|
||||
</a>
|
||||
{% else %}
|
||||
|
|
Loading…
Reference in a new issue