@ -26,9 +26,9 @@
< div class = "collapse justify-content-center mt-3 mt-{{ $breakpoint }}-0 navbar-collapse" id = "paige-menu-toggler" >
< div class = "align-items-center flex-column flex-{{ $breakpoint }}-row justify-content-center nav {{ if $pills }} nav-pills {{ end }}" >
{{ range .Site.Menus.main }}
{{ $pageP ath := strings.TrimPrefix $basepath $.RelPermalink }}
{{ $menuP ath := strings.TrimPrefix $basepath .URL }}
{{ $active := or (and (eq $menuPath "/") (eq $pagePath "/")) (and (ne $menuPath "/") (hasPrefix $pagePath $menuP ath)) }}
{{ $pagep ath := strings.TrimPrefix $basepath $.RelPermalink }}
{{ $menup ath := strings.TrimPrefix $basepath .URL }}
{{ $active := or (and (eq $menupath "/") (eq $pagepath "/")) (and (ne $menupath "/") (hasPrefix $pagepath $menup ath)) }}
< a { { if $ active } } aria-current = "page" { { end } } class = "{{ if $active }} active {{ if $links }} link-secondary {{ end }} {{ end }} nav-link" href = "{{ .URL | safeURL }}" > {{ .Name }}< / a >
{{ end }}
< / div >