Revert "Revert "Optional delay of grandchildren link display""

This reverts commit 89f79138c3.
This commit is contained in:
Peter Mosses
2019-08-29 14:41:09 +02:00
parent 3af59176f4
commit 5e72b7db67
3 changed files with 19 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
{%- endif -%}
<a href="{{ child.url | absolute_url }}" class="navigation-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
{%- if child.has_children -%}
{%- if page.url == child.url or page.parent == child.title or site.grandchildren_branch != true -%}
{%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort:"nav_order" -%}
<ul class="navigation-list-child-list">
{%- for grand_child in grand_children_list -%}
@@ -29,6 +30,7 @@
{%- endfor -%}
</ul>
{%- endif -%}
{%- endif -%}
</li>
{%- endfor -%}
</ul>