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" . }}