diff --git a/_includes/nav.html b/_includes/nav.html index 93ab7be33c1f46e3826935ee4acbcdf5a9d76539..c3d6782d4f1610ac6d6493ecaee6b008b299820b 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -227,7 +227,7 @@ {%- if page.has_children == true and page.has_toc != false -%} {%- assign toc_list = pages_list | where: "parent", page.title - | where: "grand_parent", page.parent -%} + | where_exp: "item", "item.grand_parent == page.parent" -%} {%- if page.child_nav_order == "desc" -%} {%- assign toc_list = toc_list | reverse -%} {%- endif -%}