From cf4665085ca39df59209115c68b193ad4b13b3c9 Mon Sep 17 00:00:00 2001 From: Henzel Moras Date: Thu, 1 Apr 2021 23:23:12 +0530 Subject: [PATCH] fix navbar dropdown (#279) * fix navbar dropdown * Check for sectionCount<=5 instead of sectionCound< 5 Signed-off-by: hossainemruz Co-authored-by: Emruz Hossain --- layouts/partials/navigators/navbar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/navigators/navbar.html b/layouts/partials/navigators/navbar.html index 3debe37..00db04a 100644 --- a/layouts/partials/navigators/navbar.html +++ b/layouts/partials/navigators/navbar.html @@ -59,7 +59,7 @@ {{ range sort $sections "section.weight" }} {{ if and (.section.enable) (.section.showOnNavbar)}} {{ $sectionCount = add $sectionCount 1}} - {{ if lt $sectionCount 5 }} + {{ if le $sectionCount 5 }}