{{- /* Desktop header */ -}} {{- .Site.Title -}} {{- range .Site.Menus.main -}} {{- .Pre | safeHTML }}{{ .Name -}} {{- end -}} {{- if .Site.IsMultiLingual -}} | {{- 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 -}} {{- /* Mobile header */ -}} {{- .Site.Title -}} {{- $currentPage := . -}} {{- range .Site.Menus.main -}} {{- .Pre | safeHTML }}{{ .Name -}} {{- end -}} {{- if .Site.IsMultiLingual -}} {{- range .Site.Home.AllTranslations -}} {{- $translation := . -}} {{- range $.Site.Languages -}} {{- if eq $translation.Lang .Lang -}} {{- if eq $.Page.Lang .Lang -}} {{ .LanguageName }} {{- else -}} {{ .LanguageName }} {{- end -}} {{- end -}} {{- end -}} {{- end -}} {{- end -}}