{{- if (eq .Site.Params.defaultTheme "light") }} {{- else if (eq .Site.Params.defaultTheme "dark") }} {{- else if (or (eq .Site.Params.defaultTheme "auto") (not .Site.Params.disableThemeToggle) ) }} {{- end }} {{- if .Site.Params.label.icon }} {{- end -}} {{- .Site.Params.label.text | default .Site.Title -}} {{- if (not .Site.Params.disableThemeToggle) }} {{- end}} {{ $lang := .Lang}} {{- with $.Site.Home.AllTranslations }} | {{- range . -}} {{- if ne $lang .Lang }} {{- if (and $.Site.Params.displayFullLangName (.Language.LanguageName)) }} {{- .Language.LanguageName | humanize -}} {{- else }} {{- .Lang | humanize -}} {{- end -}} {{- end -}} {{- end}} {{- end }} {{- $currentPage := . }} {{- range .Site.Menus.main }} {{- $menu_item_url := .URL | relLangURL }} {{- $page_url:= $currentPage.RelPermalink | relLangURL }} {{ .Name }} {{- end -}}