From 89bef624114373b6b5afbf0c5cd2f3118d44fda8 Mon Sep 17 00:00:00 2001 From: hossainemruz Date: Thu, 1 Apr 2021 23:51:48 +0600 Subject: [PATCH] Check for sectionCount<=5 instead of sectionCound< 5 Signed-off-by: hossainemruz --- layouts/partials/navigators/navbar.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/navigators/navbar.html b/layouts/partials/navigators/navbar.html index 63aec5b..00db04a 100644 --- a/layouts/partials/navigators/navbar.html +++ b/layouts/partials/navigators/navbar.html @@ -59,14 +59,14 @@ {{ range sort $sections "section.weight" }} {{ if and (.section.enable) (.section.showOnNavbar)}} {{ $sectionCount = add $sectionCount 1}} - {{ if lt $sectionCount 5 }} + {{ if le $sectionCount 5 }} {{ end }} {{ end }} {{- end }} - {{ if gt $sectionCount 4 }} + {{ if gt $sectionCount 5 }}