This commit is contained in:
Simon Vieille 2022-05-08 17:18:22 +02:00
parent e1d6c4d79f
commit afc6f22c49
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -31,7 +31,7 @@
{%- endif -%} {%- endif -%}
{%- endset -%} {%- endset -%}
<a href="{{- safe_node_url(item, {_domain: _domain}) -}}" {%- if _store.isActiveNode(item, true) -%}class="active"{%- endif -%} {%- if item.hasExternalUrl -%}target="_blank"{%- endif -%}> <a href="{{- safe_node_url(item, {_domain: _domain}) -}}" {% if _store.isActiveNode(item, true) %}class="active"{% endif %} {%- if item.hasExternalUrl -%}target="_blank"{%- endif -%}>
{{- icon|raw -}} {{- icon|raw -}}
{{- item.label -}} {{- item.label -}}
</a> </a>
@ -60,7 +60,7 @@
<ul> <ul>
{%- for item in menu.rootNode.children({isVisible: true}) -%} {%- for item in menu.rootNode.children({isVisible: true}) -%}
<li> <li>
<a href="{{- safe_node_url(item, {_domain: _domain}) -}}" {%- if _store.isActiveNode(item, true) -%}class="active"{%- endif -%} {%- if item.hasExternalUrl -%}target="_blank"{%- endif -%}> <a href="{{- safe_node_url(item, {_domain: _domain}) -}}" {% if _store.isActiveNode(item, true) %}class="active"{% endif %} {% if item.hasExternalUrl %}target="_blank"{% endif %}>
{%- set icon -%} {%- set icon -%}
{%- if item.attributes.icon is defined -%} {%- if item.attributes.icon is defined -%}
<span class="deblan-icon deblan-icon-{{- item.attributes.icon.value -}}"></span> <span class="deblan-icon deblan-icon-{{- item.attributes.icon.value -}}"></span>