about summary refs log tree commit diff
path: root/layouts/partials/languageSelect.html
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-04-12 11:19:57 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-04-12 11:19:57 +0700
commit981e41a9473654c4ee754f86a78d54c8c5cad9b2 (patch)
tree26fa9a31a9f11ec709615f1c96b0c26f2dc70538 /layouts/partials/languageSelect.html
parentd02a380caa30a804c927498e624927daa70b0b13 (diff)
downloadblog-981e41a9473654c4ee754f86a78d54c8c5cad9b2.tar.gz
Switch to Hugo, restructure the page
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 }}