mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
fix(menu): add title to language select menu
This commit is contained in:
parent
c19bc50000
commit
b0fd869e29
@ -82,7 +82,7 @@
|
|||||||
{{ with .Site.Home.AllTranslations }}
|
{{ with .Site.Home.AllTranslations }}
|
||||||
<li id="i18n-switch">
|
<li id="i18n-switch">
|
||||||
{{ partial "helper/icon" "language" }}
|
{{ partial "helper/icon" "language" }}
|
||||||
<select name="language" onchange="window.location.href = this.selectedOptions[0].value">
|
<select name="language" title="language" onchange="window.location.href = this.selectedOptions[0].value">
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<option value="{{ .Permalink }}" {{ if eq .Language.Lang $currentLanguageCode }}selected{{ end }}>{{ .Language.LanguageName }}</option>
|
<option value="{{ .Permalink }}" {{ if eq .Language.Lang $currentLanguageCode }}selected{{ end }}>{{ .Language.LanguageName }}</option>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user