diff --git a/_includes/nav.html b/_includes/nav.html
index d561a42..fbe159f 100644
--- a/_includes/nav.html
+++ b/_includes/nav.html
@@ -1,40 +1,38 @@
-
+
+ {%- assign pages_list = site.html_pages | sort:"nav_order" -%}
+ {%- for node in pages_list -%}
+ {%- unless node.nav_exclude -%}
+ {%- if node.parent == nil -%}
+ -
+ {%- if page.parent == node.title or page.grand_parent == node.title -%}
+ {%- assign first_level_url = node.url | absolute_url -%}
+ {%- endif -%}
+ {{ node.title }}
+ {%- if node.has_children -%}
+ {%- assign children_list = site.html_pages | where: "parent", node.title | sort:"nav_order" -%}
+
+ {%- for child in children_list -%}
+ -
+ {%- if page.url == child.url or page.parent == child.title -%}
+ {%- assign second_level_url = child.url | absolute_url -%}
+ {%- endif -%}
+ {{ child.title }}
+ {%- if child.has_children -%}
+ {%- assign grand_children_list = site.html_pages | where: "parent", child.title | sort:"nav_order" -%}
+
+ {%- endif -%}
+
+ {%- endfor -%}
+
+ {%- endif -%}
+
+ {%- endif -%}
+ {%- endunless -%}
+ {%- endfor -%}
+
diff --git a/_layouts/default.html b/_layouts/default.html
index d414234..52a03e1 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -4,7 +4,7 @@ layout: table_wrappers
-
+
{% include head.html %}
@@ -14,10 +14,9 @@ layout: table_wrappers
{% include title.html %}
-
-
+
+