From e4759daecfeb52ceda9aeb3f567096bf5fb29293 Mon Sep 17 00:00:00 2001
From: PLanCompS <18308236+pdmosses@users.noreply.github.com>
Date: Tue, 11 Aug 2020 18:31:54 +0200
Subject: [PATCH] Update nav.html
Indentation adjusted
---
_includes/nav.html | 74 +++++++++++++++++++++++-----------------------
1 file changed, 37 insertions(+), 37 deletions(-)
diff --git a/_includes/nav.html b/_includes/nav.html
index c9bcbda..a6fd87e 100644
--- a/_includes/nav.html
+++ b/_includes/nav.html
@@ -58,42 +58,42 @@
{%- assign pages_list = sorted_number_ordered_pages | concat: sorted_string_ordered_pages -%}
{%- for node in pages_list -%}
- {%- if node.parent == nil -%}
-
- {%- if page.parent == node.title or page.grand_parent == node.title -%}
- {%- assign first_level_url = node.url | absolute_url -%}
- {%- endif -%}
- {%- if node.has_children -%}
-
- {%- endif -%}
- {{ node.title }}
- {%- if node.has_children -%}
- {%- assign children_list = pages_list | where: "parent", node.title -%}
-
- {%- for child in children_list -%}
- -
- {%- if page.url == child.url or page.parent == child.title -%}
- {%- assign second_level_url = child.url | absolute_url -%}
- {%- endif -%}
- {%- if child.has_children -%}
-
- {%- endif -%}
- {{ child.title }}
- {%- if child.has_children -%}
- {%- assign grand_children_list = pages_list | where: "parent", child.title | where: "grand_parent", node.title -%}
-
- {%- endif -%}
-
- {%- endfor -%}
-
- {%- endif -%}
-
- {%- endif -%}
+ {%- if node.parent == nil -%}
+
+ {%- if page.parent == node.title or page.grand_parent == node.title -%}
+ {%- assign first_level_url = node.url | absolute_url -%}
+ {%- endif -%}
+ {%- if node.has_children -%}
+
+ {%- endif -%}
+ {{ node.title }}
+ {%- if node.has_children -%}
+ {%- assign children_list = pages_list | where: "parent", node.title -%}
+
+ {%- for child in children_list -%}
+ -
+ {%- if page.url == child.url or page.parent == child.title -%}
+ {%- assign second_level_url = child.url | absolute_url -%}
+ {%- endif -%}
+ {%- if child.has_children -%}
+
+ {%- endif -%}
+ {{ child.title }}
+ {%- if child.has_children -%}
+ {%- assign grand_children_list = pages_list | where: "parent", child.title | where: "grand_parent", node.title -%}
+
+ {%- endif -%}
+
+ {%- endfor -%}
+
+ {%- endif -%}
+
+ {%- endif -%}
{%- endfor -%}