Add languages menu

This commit is contained in:
nemunaire 2020-05-04 15:02:17 +02:00
parent ff41d5ea95
commit 29c2eddb7b
Signed by: nemunaire
GPG Key ID: 842807A84573CC96

View File

@ -26,6 +26,7 @@
</li> </li>
{{ end }} {{ end }}
</ul> </ul>
<div class="d-flex">
<div class="nav-item nav-ext-links"> <div class="nav-item nav-ext-links">
{{ range .Site.Data.social.social_icons }} {{ range .Site.Data.social.social_icons }}
{{- if isset $.Site.Author .id }} {{- if isset $.Site.Author .id }}
@ -53,6 +54,17 @@
</a> </a>
{{ end }} {{ end }}
</div> </div>
<div class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ .Language }}
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
{{ range .Site.Home.AllTranslations }}
<a href="{{ .Permalink }}" class="dropdown-item">{{ .Language }}</a>
{{ end }}
</div>
</div>
</div>
</div> </div>
</div> </div>
</nav> </nav>