Explorar o código

fix navbar dropdown (#279)

* fix navbar dropdown

* Check for sectionCount<=5 instead of sectionCound< 5

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
Henzel Moras %!s(int64=4) %!d(string=hai) anos
pai
achega
cf4665085c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      layouts/partials/navigators/navbar.html

+ 1 - 1
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 }}
                 <li class="nav-item">
                   <a class="nav-link" href="#{{ partial "helpers/get-section-id.html" . }}">{{ .section.name }}</a>
                 </li>