refactor: regrouper le menu desktop dans Ressources
This commit is contained in:
@@ -6,11 +6,28 @@
|
||||
</a>
|
||||
<ul class="nav-links">
|
||||
{% for item in t.navigation %}
|
||||
{% if item.children %}
|
||||
<li class="has-dropdown">
|
||||
<button type="button" class="nav-dropdown-trigger" aria-haspopup="true" aria-expanded="false">
|
||||
{{ item.text }} <span class="dropdown-caret">▾</span>
|
||||
</button>
|
||||
<ul class="nav-dropdown">
|
||||
{% for child in item.children %}
|
||||
<li>
|
||||
<a href="{{ child.url }}"{% if child.external %} target="_blank"{% endif %}>
|
||||
{{ child.text }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
<li>
|
||||
<a href="{{ item.url }}"{% if item.external %} target="_blank"{% endif %}>
|
||||
{{ item.text }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if locale == 'en' %}
|
||||
|
||||
Reference in New Issue
Block a user