selfprivacy.org/layouts/partials/navbar-lang-selector.html

12 lines
583 B
HTML
Raw Normal View History

2023-01-11 16:53:46 +00:00
{{/* Link directly to documentation etc., if possible. */}}
{{ $langPage := cond (gt (len .Translations) 0) . .Site.Home }}
2024-04-20 12:11:45 +00:00
<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">
2024-04-20 15:30:05 +00:00
<i class="fas fa-globe ms-2"></i>
2024-04-20 12:11:45 +00:00
</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
{{ range $langPage.AllTranslations }}
<li><a class="dropdown-item" href="{{ .RelPermalink }}">{{ .Language.LanguageName }}</a></li>
{{ end }}
</ul>
2023-01-11 16:53:46 +00:00
</div>