9cd378a2d2
* Add i18n langs trans example * partials * Update sample site * cc of variables of config * Clean PR * revert master data
14 lines
409 B
HTML
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 }}
|