diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/header.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8613478..5048eea 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -31,6 +31,23 @@ </a> </li> {{ end }} + + {{ if .IsTranslated }} + <select + name="lang" + class="mv2 pv1 tc ba b--black-20 br2 w3-theme-d3 mw3 " + onchange="self.location=options[selectedIndex].value" + > + <option value="{{ .Permalink }}"> + {{ .Language.Lang }} + </option> + {{ range .Translations }} + <option value="{{ .Permalink }}"> + {{ .Language.Lang }} + </option> + {{ end }} + </select> + {{ end }} </ul> </div> </nav> |