diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-04-12 11:19:57 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-04-12 11:19:57 +0700 |
commit | 981e41a9473654c4ee754f86a78d54c8c5cad9b2 (patch) | |
tree | 26fa9a31a9f11ec709615f1c96b0c26f2dc70538 /layouts/partials/languageSelect.html | |
parent | d02a380caa30a804c927498e624927daa70b0b13 (diff) | |
download | blog-981e41a9473654c4ee754f86a78d54c8c5cad9b2.tar.gz |
Switch to Hugo, restructure the page
Diffstat (limited to 'layouts/partials/languageSelect.html')
-rw-r--r-- | layouts/partials/languageSelect.html | 10 |
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 }} |