diff --git a/_includes/nav.html b/_includes/nav.html
index 5dfcdeb9..cee93990 100644
--- a/_includes/nav.html
+++ b/_includes/nav.html
@@ -1,57 +1,71 @@
- {% if page.sidebar == "core" %}
- {% assign navlist = site.data.navcore %}
- {% elsif page.sidebar == "sql" %}
- {% assign navlist = site.data.navsql %}
- {% else %}
- {% assign navlist = site.data.nav %}
- {% endif %}
-
-
- {% for nav in navlist %}
- {% if nav.subcategories != null %}
- {% assign current_parent = nav.subcategories | where:"page", page.path | size %}
- {% if current_parent != 0 %}
- {% assign classlist = "active" %}
- {% else %}
- {% assign classlist = "" %}
- {% endif %}
- -
-
- {% if nav.page %}
- {{ nav.title }}
+
+ {% if page.sidebar == "core" %}
+ {% assign navlist = site.data.navcore %}
+ {% elsif page.sidebar == "sql" %}
+ {% assign navlist = site.data.navsql %}
{% else %}
- {{ nav.title }}
+ {% assign navlist = site.data.nav %}
{% endif %}
-
- {% for subcategory in nav.subcategories %}
- {% if page.path == subcategory.page %}
- {% assign classlist = "active" %}
+ {% for nav in navlist %}
+ {% if nav.subcategories != null %}
+ {% assign current_parent = nav.subcategories | where:"page", page.path | size %}
+ {% if current_parent != 0 %}
+ {% assign classlist = "active" %}
+ {% else %}
+ {% assign classlist = "" %}
+ {% endif %}
+ -
+
+ {% if nav.page %}
+ {{ nav.title }}
{% else %}
- {% assign classlist = "" %}
+ {{ nav.title }}
{% endif %}
-
-
- {{ subcategory.subtitle }}
-
- {% endfor %}
-
-
- {% else %}
- {% if page.path == nav.page %}
- {% assign classlist = "active" %}
- {% else %}
- {% assign classlist = "" %}
- {% endif %}
- -
- {{ nav.title }}
-
- {% endif %}
- {% endfor %}
-
\ No newline at end of file
+
+ {% for subcategory in nav.subcategories %}
+ {% if page.path == subcategory.page %}
+ {% assign classlist = "active" %}
+ {% else %}
+ {% assign classlist = "" %}
+ {% endif %}
+ -
+ {{ subcategory.subtitle }}
+ {% if subcategory.subcategories != null %}
+
+ {% for subsubcategory in subcategory.subcategories %}
+ {% if page.path == subsubcategory.page %}
+ {% assign classlist = "active" %}
+ {% else %}
+ {% assign classlist = "" %}
+ {% endif %}
+ -
+ {{ subsubcategory.subtitle }}
+
+ {% endfor %}
+
+ {% endif %}
+
+ {% endfor %}
+
+
+ {% else %}
+ {% if page.path == nav.page %}
+ {% assign classlist = "active" %}
+ {% else %}
+ {% assign classlist = "" %}
+ {% endif %}
+
+ {{ nav.title }}
+
+ {% endif %}
+ {% endfor %}
+
\ No newline at end of file