Improve Navigation

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2022-03-06 06:40:26 +01:00
parent 4cc1ea6a58
commit 55115228f2
2 changed files with 104 additions and 43 deletions
+4 -4
View File
@@ -1,6 +1,10 @@
<ul class="menu">
{% for entry in include.data %}
<li id="{{ entry[0] }}" class="entry {% if entry[1].entries != nil %}has-menu {% endif %}">
{% if entry[1].entries != nil %}
{% assign data=entry[1].entries %}
{% include navigation.liquid data=data %}
{% endif %}
{% if entry[1].url != nil %}
<a class="item" href="{{ entry[1].url | absolute_url }}" {% if entry[1].blank %}target="_blank"{% endif %}>
{% else %}
@@ -12,10 +16,6 @@
{% else %}
</span>
{% endif %}
{% if entry[1].entries != nil %}
{% assign data=entry[1].entries %}
{% include navigation.liquid data=data %}
{% endif %}
</li>
{% endfor %}
</ul>