Add languages menu
This commit is contained in:
parent
ff41d5ea95
commit
29c2eddb7b
@ -26,6 +26,7 @@
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<div class="d-flex">
|
||||
<div class="nav-item nav-ext-links">
|
||||
{{ range .Site.Data.social.social_icons }}
|
||||
{{- if isset $.Site.Author .id }}
|
||||
@ -53,6 +54,17 @@
|
||||
</a>
|
||||
{{ end }}
|
||||
</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>
|
||||
</nav>
|
||||
|
Loading…
Reference in New Issue
Block a user