{{- /* multilingual.html (partial): Displays a language switcher if the site is configured for multiple languages. Features: - If the site is multilingual: - If the current page has translations, displays an accessible language switch listing links to available translated versions. - If the current page does not have translations, displays an icon indicating that no translation is available for this page. - If the site has only a single language configured, nothing is displayed. Repo: https://github.com/oxypteros/alpha */ -}} {{- if gt (len .Site.Languages) 1 }} {{- $hasTranslations := false }} {{- range .Translations }} {{- if .File }} {{- $hasTranslations = true }} {{- end }} {{- end }} {{- if not $hasTranslations }}