From a372b1068b926942cc99a3d15d78beb98516dbd2 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 16 Sep 2017 20:15:00 +0100 Subject: [PATCH] Split up navbar --- .../partials/{navbar.html => navbar/index.html} | 14 ++++---------- layouts/partials/navbar/link-item.html | 1 + layouts/partials/page_start.html | 2 +- 3 files changed, 6 insertions(+), 11 deletions(-) rename layouts/partials/{navbar.html => navbar/index.html} (73%) create mode 100644 layouts/partials/navbar/link-item.html 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 }} 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" . }}