diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar/index.html
similarity index 73%
rename from layouts/partials/navbar.html
rename to layouts/partials/navbar/index.html
index 9830011..3450661 100644
--- a/layouts/partials/navbar.html
+++ b/layouts/partials/navbar/index.html
@@ -10,17 +10,13 @@
{{ $children := where $valid_children ".Parent.UniqueID" .UniqueID }}
{{ $children := where $children ".Params.hide_in_nav" "!=" "true" }}
- {{ .LinkTitle }}
+ {{ partial "navbar/link-item.html" . }}
{{ if $children }}
{{ range first .Site.Params.nav_items $children }}
-
- {{ .LinkTitle }}
-
+ {{ partial "navbar/link-item.html" . }}
+
{{ range .Pages }}- {{ partial "navbar/link-item.html" . }}
{{ end }}
{{ end }}
{{ if ge (len $children) .Site.Params.nav_items }}
@@ -33,9 +29,7 @@
{{ end }}
{{ range where .Site.Pages.ByTitle "Kind" "page" }}
- {{ if eq .Section "" }}
- - {{ title .LinkTitle }}
- {{ end }}
+ {{ if eq .Section "" }}- {{ partial "navbar/link-item.html" . }}
{{ end }}
{{ end }}
- Home
diff --git a/layouts/partials/navbar/link-item.html b/layouts/partials/navbar/link-item.html
new file mode 100644
index 0000000..10bb61b
--- /dev/null
+++ b/layouts/partials/navbar/link-item.html
@@ -0,0 +1 @@
+{{ .LinkTitle }}
diff --git a/layouts/partials/page_start.html b/layouts/partials/page_start.html
index b4b3ed1..4acac65 100644
--- a/layouts/partials/page_start.html
+++ b/layouts/partials/page_start.html
@@ -7,5 +7,5 @@
{{ else }}
{{ end }}
- {{ partial "navbar.html" . }}
+ {{ partial "navbar/index.html" . }}