diff options
Diffstat (limited to 'layouts/partials/docs/translation-switch.html')
-rw-r--r-- | layouts/partials/docs/translation-switch.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/layouts/partials/docs/translation-switch.html b/layouts/partials/docs/translation-switch.html new file mode 100644 index 0000000..4ad0f1a --- /dev/null +++ b/layouts/partials/docs/translation-switch.html @@ -0,0 +1,14 @@ +{{ if .IsTranslated }} +<ul> + <li class="book-section-flat"> + <span>{{ i18n "translations" }}</span> + <ul> + {{ range .Translations }} + <li> + <a href="{{ .Permalink }}">{{ .Lang }}: {{ .Title }}{{ if .IsPage }} ({{ i18n "wordCount" . }}){{ end }}</a> + </li> + {{ end }} + </ul> + </li> +</ul> +{{ end }}
\ No newline at end of file |