mirror of
https://github.com/thangisme/notes.git
synced 2025-02-21 06:57:46 -05:00
Add condition for nav exclude
This commit is contained in:
parent
fa40528acd
commit
6540493df2
@ -2,6 +2,7 @@
|
|||||||
<ul class="navigation-list">
|
<ul class="navigation-list">
|
||||||
{% assign pages_list = site.html_pages | sort:"nav_order" %}
|
{% 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">
|
<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 %}
|
{% 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>
|
<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 %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
|
{% endunless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user