1
0
mirror of https://github.com/thangisme/notes.git synced 2024-12-22 10:26:29 -05:00

Revert "Revert "Update nav.html""

This reverts commit 5d58a66301.
This commit is contained in:
Peter Mosses 2019-08-29 14:41:21 +02:00
parent 5e72b7db67
commit cfbc7f41df

View File

@ -10,7 +10,6 @@
{%- endif -%}
<a href="{{ node.url | absolute_url }}" class="navigation-list-link{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a>
{%- if node.has_children -%}
{%- if page.url == node.url or page.parent == node.title or page.grand_parent == node.title -%}
{%- assign children_list = site.html_pages | where: "parent", node.title | sort:"nav_order" -%}
<ul class="navigation-list-child-list ">
{%- for child in children_list -%}
@ -35,7 +34,6 @@
{%- endfor -%}
</ul>
{%- endif -%}
{%- endif -%}
</li>
{%- endif -%}
{%- endunless -%}