hugo-book-theme/layouts/partials/docs/translation-switch.html
Alex Ivanov 9cd378a2d2 Multilang (#93)
* Add i18n langs trans example
* partials
* Update sample site
* cc of variables of config
* Clean PR
* revert master data
2019-11-16 20:34:46 +01:00

14 lines
No EOL
374 B
HTML

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