{{- $currentPage := . -}}

{{- $identifier := "" -}}
{{- $title := "404" -}}
{{- $weight := -1 -}}

{{- range site.Menus.main -}}
  {{ $menu_item_url := .URL | relLangURL }}
  {{ $page_url:= $currentPage.RelPermalink | relLangURL }}
  {{ if eq $menu_item_url $page_url }}
    {{- $identifier = .Identifier -}}
    {{- $title = .Title -}}
    {{- $weight = .Weight -}}
  {{- end -}}
{{- end -}}

{{- return (dict "Identifier" $identifier "Title" $title "Weight" $weight) -}}
