{{ $current := . }} {{ range site.Menus.main }} {{ $active := or ($current.IsMenuCurrent "main" .) ($current.HasMenuCurrent "main" .) }} {{ if and .Page (not $active) }} {{ $active = or (eq $current .Page) ($current.IsDescendant .Page) }} {{ if and (eq .Page.Section "specs") (eq $current.Section "specs") }}{{ $active = true }}{{ end }} {{ end }}
  • {{ .Name }}
  • {{ end }}