{{- /* Desktop header */ -}} {{- .Site.Title -}} {{- range .Site.Menus.main -}} {{- .Pre | safeHTML }}{{ .Name -}} {{- end -}} {{- if .Site.IsMultiLingual -}} {{- .Language.LanguageName -}} {{- range .Page.AllTranslations -}} {{- $translation := . -}} {{- range $.Site.Languages -}} {{- if eq $translation.Lang .Lang -}} {{- if eq $.Page.Lang .Lang -}} {{ .LanguageName }} {{- else -}} {{ .LanguageName }} {{- end -}} {{- end -}} {{- end -}} {{- end -}} {{- end -}} {{- if .Site.Params.search.enable -}} {{- end -}} {{- /* Mobile header */ -}} {{- .Site.Title -}} {{- if .Site.Params.search.enable -}} {{ T `cancel` }} {{- end -}} {{- $currentPage := . -}} {{- range .Site.Menus.main -}} {{- .Pre | safeHTML }}{{ .Name -}} {{- end -}} {{- if .Site.IsMultiLingual -}} {{- .Language.LanguageName -}} {{- range .Page.AllTranslations -}} {{- $translation := . -}} {{- range $.Site.Languages -}} {{- if eq $translation.Lang .Lang -}} {{- if eq $.Page.Lang .Lang -}} {{ .LanguageName }} {{- else -}} {{ .LanguageName }} {{- end -}} {{- end -}} {{- end -}} {{- end -}} {{- end -}}