Skip to content
Snippets Groups Projects
Unverified Commit 6540493d authored by Patrick Marsceill's avatar Patrick Marsceill
Browse files

Add condition for nav exclude

parent fa40528a
No related branches found
No related tags found
No related merge requests found
<nav>
<ul class="navigation-list">
{% assign pages_list = site.html_pages | sort:"nav_order" %}
{% for node in pages_list %}
{% for node in pages_list %}
{% unless node.nav_exclude %}
<li class="navigation-list-item{% if page.url == node.url %} active{% endif %} js-side-nav-item">
{% if node.parent == nil or node.has_children == true %}
<a href="{{ node.url | absolute_url }}" class="navigation-list-link{% if page.url == node.url or (page.parent != nil and page.parent == node.parent) %} active{% endif %}">{{ node.title }}</a>
......@@ -19,6 +20,7 @@
{% endif %}
{% endif %}
</li>
{% endfor %}
{% endunless %}
{% endfor %}
</ul>
</nav>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment