about summary refs log tree commit diff
path: root/layouts/partials/languageSelect.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/languageSelect.html')
-rw-r--r--layouts/partials/languageSelect.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/layouts/partials/languageSelect.html b/layouts/partials/languageSelect.html
new file mode 100644
index 0000000..029a34d
--- /dev/null
+++ b/layouts/partials/languageSelect.html
@@ -0,0 +1,10 @@
+{{ if .IsTranslated }}
+<h4>{{ i18n "translations" }}</h4>
+<ul>
+  {{ range .Translations }}
+  <li>
+    <a href="{{ .Permalink }}">{{ .Language.LanguageName }}: {{ .Title }}{{ if .IsPage }} ({{ i18n "wordCount" . }}){{ end }}</a>
+  </li>
+  {{ end }}
+</ul>
+{{ end }}