{{ $active := or $home $menuprefix $sectionprefix }}
<nav>
<ulclass="align-items-center justify-content-center nav {{ if $pills }} nav-pills {{ else if $tabs }} nav-tabs {{ else if $underline }} nav-underline {{ end }}">
{{ $active := or $home $menuprefix $sectionprefix }}
<liclass="nav-item {{ if .Children }} dropdown {{ end }}">
<a{{if$active}}aria-current="page"{{end}}{{if.Children}}aria-expanded="false"{{end}}class="{{ if $active }} active {{ end }} {{ if .Params.paige.disabled }} disabled {{ end }} nav-link {{ if .Children }} dropdown-toggle {{ end }}"{{if.Children}}data-bs-toggle="dropdown"{{end}}href="{{ if .Children -}} # {{- else -}} {{ .URL | safeURL }} {{- end }}"{{if.Children}}role="button"{{end}}>{{ .Name }}</a>
<liclass="nav-item {{ if .Children }} dropdown {{ end }}">
<a{{if$active}}aria-current="page"{{end}}{{if.Children}}aria-expanded="false"{{end}}class="{{ if $active }} active {{ end }} {{ if .Params.paige.disabled }} disabled {{ end }} nav-link {{ if .Children }} dropdown-toggle {{ end }}"{{if.Children}}data-bs-toggle="dropdown"{{end}}href="{{ if .Children -}} # {{- else -}} {{ .URL | safeURL }} {{- end }}"{{if.Children}}role="button"{{end}}>{{ .Name }}</a>
{{ with .Children }}
<ulclass="dropdown-menu">
{{ range . }}
{{ with .Children }}
<ulclass="dropdown-menu">
{{ range . }}
<li>
<aclass="{{ if .Params.paige.disabled }} disabled {{ end }} dropdown-item"href="{{ .URL | safeURL }}">{{ .Name }}</a>
</li>
{{ if .Params.paige.divider_below }}
<li>
<aclass="{{ if .Params.paige.disabled }} disabled {{ end }} dropdown-item"href="{{ .URL | safeURL }}">{{ .Name }}</a>