Skip to content
Snippets Groups Projects
Unverified Commit b3e3eaf9 authored by Peter Mosses's avatar Peter Mosses Committed by GitHub
Browse files

Fix active grandchild link class (#962)

An occurrence of `grandchild` was miss-spelled `grand_child` (!).
That caused omission of the `active` class in the link in the nav panel for all grandchildren.

This bug was discovered using `diff` to compare the generated sites built using v0.4.0.rc1 and commit  4396b6b1c836f354bb7aa7edc1a06a49f137d615 on the fix-nav-performance PR branch.
parent 1b4aef35
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
{%- for grandchild in grandchildren_list -%} {%- for grandchild in grandchildren_list -%}
{%- unless grandchild.nav_exclude -%} {%- unless grandchild.nav_exclude -%}
<li class="nav-list-item {% if page.url == grandchild.url %} active{% endif %}"> <li class="nav-list-item {% if page.url == grandchild.url %} active{% endif %}">
<a href="{{ grandchild.url | relative_url }}" class="nav-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grandchild.title }}</a> <a href="{{ grandchild.url | relative_url }}" class="nav-list-link{% if page.url == grandchild.url %} active{% endif %}">{{ grandchild.title }}</a>
</li> </li>
{%- endunless -%} {%- endunless -%}
{%- endfor -%} {%- endfor -%}
......
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