sitoctt/themes/ananke/layouts/partials/i18nlist.html

11 lines
534 B
HTML

{{ if .IsTranslated }}
<h4>{{ i18n "translations" }}</h4>
<ul class="{{ cond (eq $.Site.Language.LanguageDirection "rtl") "pr0 ml3" "pl0 mr3" }}">
{{ range .Translations }}
<li class="list f5 f4-ns fw4 dib {{ cond (eq $.Site.Language.LanguageDirection "rtl") "pl3" "pr3" }}">
<a class="hover-white no-underline white-90" href="{{ .RelPermalink }}"><span>{{ .Lang }}</span><span>{{ with partial "functions/GetLanguageData.html" . }}{{ .Params.LanguageEmoji }}{{ end }}</span></a>
</li>
{{ end}}
</ul>
{{ end }}