test: add lang toggle
This commit is contained in:
1 parent
1e2fefddb9
commit
c3aadcee8e
1 file changed
+10
-1
@@ -55,7 +55,16 @@
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{- $currentLang := $page.Language.Lang -}}
|
||||
{{- range $page.AllTranslations }}
|
||||
{{- if ne .Language.Lang $currentLang }}
|
||||
<li class="lang-toggle-icon">
|
||||
<a href="{{ .Permalink }}" title="Switch to {{ .Language.Lang }}">
|
||||
{{ partial "helper/icon" (printf "toggle_to_%s" .Language.Lang) }}
|
||||
</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</ol>
|
||||
{{- end -}}
|
||||
|
||||
|
||||
Reference in new issue
Block a user