aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/docs/language-switch.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/docs/language-switch.html')
-rw-r--r--layouts/partials/docs/language-switch.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/partials/docs/language-switch.html b/layouts/partials/docs/language-switch.html
new file mode 100644
index 0000000..4a84ade
--- /dev/null
+++ b/layouts/partials/docs/language-switch.html
@@ -0,0 +1,14 @@
+{{ if .Site.IsMultiLingual }}
+<ul>
+ <li class="book-section-flat">
+ <span>{{ i18n "languages" }}</span>
+ <ul>
+ {{ range .Site.Home.AllTranslations -}}
+ <li>
+ <a href="{{ .Permalink }}" class="{{ if (eq $.Site.Language .Language ) }}active{{ end }}">{{ .Language.LanguageName }}</a>
+ </li>
+ {{- end }}
+ </ul>
+ </li>
+</ul>
+{{ end }}