hugo-book-theme/layouts/partials/docs/translation-switch.html

14 lines
374 B
HTML
Raw Normal View History

{{ 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 }}