{{ $current := .Permalink | absLangURL }}
{{ range .Site.Menus.main }}
{{$actived := "false"}}
{{if hasPrefix $current (.URL|absLangURL)}}
{{$actived = "active"}}
{{end}}
{{ if .HasChildren }}
{{ range .Children }}
{{ .Name }}
{{ end }}
{{ else }}
{{ .Name }}
{{ end }}
{{ end }}