mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
18 lines
480 B
HTML
18 lines
480 B
HTML
{{- $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) -}}
|