diff --git a/.gitignore b/.gitignore index b447a12..25e8803 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ _site Gemfile.lock node_modules +.jekyll-metadata diff --git a/_includes/nav.html b/_includes/nav.html index d561a42..fdcf1e1 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -10,6 +10,7 @@ {%- endif -%} {{ node.title }} {%- 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" -%}
{%- endif -%} + {%- endif -%} {%- endif -%} {%- endunless -%}