hugo-book-theme/layouts/partials/docs/language-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
409 B
HTML

{{ if .Site.IsMultiLingual }}
<ul>
<li class="book-section-flat">
<span>{{ i18n "languages" }}</span>
<ul>
{{ range .Site.Home.AllTranslations -}}
<li>
<a href="{{ .Permalink }}" class="{{ if (eq $.Site.Language .Language ) }}active{{ end }}">{{ .Language.LanguageName }}</a>
</li>
{{- end }}
</ul>
</li>
</ul>
{{ end }}