<liclass="dropdown{{ if eq $current.RelPermalink .URL | or (eq (trim $current.RelPermalink "/")$topLevel)|or(eq$current.Type.Identifier)|or(eq$current.Type$topLevel)|or(and(eq(default(trim.URL"/").Identifier)"blog")(in(slice"taxonomy""taxonomyTerm")$current.Kind))}}active{{end}}">
{{ $isChildren := false }}
{{ range .Children }}
{{ if eq .Identifier $current.Type }}
{{ $isChildren = true }}
{{ end }}
{{ end }}
<liclass="dropdown{{ if eq $current.RelPermalink .URL | or $isChildren | or (eq (trim $current.RelPermalink "/")$topLevel)|or(eq$current.Type.Identifier)|or(eq$current.Type$topLevel)|or(and(eq(default(trim.URL"/").Identifier)"blog")(in(slice"taxonomy""taxonomyTerm")$current.Kind))}}active{{end}}">