{{/* Link directly to documentation etc., if possible. */}} {{ $langPage := cond (gt (len .Translations) 0) . .Site.Home }} <div class="dropdown"> <a role="button" class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <i class="fas fa-globe ms-2"></i> </a> <ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> {{ range $langPage.AllTranslations }} <li><a class="dropdown-item" href="{{ .RelPermalink }}">{{ .Language.LanguageName }}</a></li> {{ end }} </ul> </div>