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>
This commit is contained in:
parent
0627ad4ba9
commit
cf4665085c
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue