From a0976fffacd6b9b36e7e4a6a4d9cea46e660dfe8 Mon Sep 17 00:00:00 2001 From: HenzelMoras Date: Thu, 25 Mar 2021 16:54:57 +0530 Subject: [PATCH] added dropdown after 6 elements --- layouts/partials/navigators/navbar.html | 29 ++++++++++++++++++------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/layouts/partials/navigators/navbar.html b/layouts/partials/navigators/navbar.html index 994cfd3..b9c7c20 100644 --- a/layouts/partials/navigators/navbar.html +++ b/layouts/partials/navigators/navbar.html @@ -56,16 +56,29 @@ {{ if $sections }} {{ range sort $sections "section.weight" }} - {{ if and (.section.enable) (.section.showOnNavbar)}} - {{ $sectionID := replace (lower .section.name) " " "-" }} - {{ if .section.id }} - {{ $sectionID = .section.id }} - {{ end }} - + {{ if and (.section.enable) (.section.showOnNavbar) }} + {{ $sectionID := replace (lower .section.name) " " "-" }} + {{ if .section.id }} + {{ $sectionID = .section.id }} + {{ end }} + {{ if lt .section.weight 7 }} + + {{ end }} {{ end }} {{- end }} + + + {{- end }} {{ $hasCustomMenus:= false }} {{ if $customMenus }}