Fixed more menu in navbar

This commit is contained in:
Aroy-Art 2021-10-26 11:40:24 +02:00
parent 2bc9caf285
commit 03ded7e0bf

View file

@ -22,12 +22,16 @@
</li>
{{ end }}
{{ if site.Menus.more }}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">More</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="/archive">Archive</a>
{{ range site.Menus.more }}
<a class="dropdown-item" href="{{if .Pre}}{{if not $.IsHome}}{{site.BaseURL | relLangURL}}{{end}}{{.Pre}}{{ .URL }}{{else}}{{.URL | relLangURL}}{{end}}">{{ .Name }}</a>
{{ end }}
</div>
</li>
</li>
{{ end }}
</ul>
{{- if site.IsMultiLingual }}