added dropdown after 6 elements
This commit is contained in:
parent
c0b67d35ff
commit
a0976fffac
1 changed files with 21 additions and 8 deletions
|
@ -56,16 +56,29 @@
|
||||||
</li>
|
</li>
|
||||||
{{ if $sections }}
|
{{ if $sections }}
|
||||||
{{ range sort $sections "section.weight" }}
|
{{ range sort $sections "section.weight" }}
|
||||||
{{ if and (.section.enable) (.section.showOnNavbar)}}
|
{{ if and (.section.enable) (.section.showOnNavbar) }}
|
||||||
{{ $sectionID := replace (lower .section.name) " " "-" }}
|
{{ $sectionID := replace (lower .section.name) " " "-" }}
|
||||||
{{ if .section.id }}
|
{{ if .section.id }}
|
||||||
{{ $sectionID = .section.id }}
|
{{ $sectionID = .section.id }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if lt .section.weight 7 }}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="#{{ $sectionID }}">{{ .section.name }}</a>
|
<a class="nav-link" href="#{{ $sectionID }}">{{ .section.name }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
<li class="nav-item dropdown">
|
||||||
|
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
More
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
|
||||||
|
<a class="dropdown-item" href="#achievements">Achievements</a>
|
||||||
|
<a class="dropdown-item" href="#recent-posts">Recent Posts</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ $hasCustomMenus:= false }}
|
{{ $hasCustomMenus:= false }}
|
||||||
{{ if $customMenus }}
|
{{ if $customMenus }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue