add basic support for post translations

This commit is contained in:
Jan Steinke 2018-08-25 12:35:38 +02:00
parent 8c1280c2a3
commit 1f5f14146a
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,10 @@
{{ if .IsTranslated }}
<h4>{{ i18n "translations" }}</h4>
<ul class="pl0 mr3">
{{ range .Translations }}
<li class="list f5 f4-ns fw4 dib pr3">
<a class="hover-white no-underline white-90" href="{{ .Permalink }}">{{ .Lang }}</a>
</li>
{{ end}}
</ul>
{{ end }}

View File

@ -4,6 +4,7 @@
{{ .Site.Title }} {{ .Site.Title }}
</a> </a>
<div class="flex-l items-center"> <div class="flex-l items-center">
{{ partial "i18nlist.html" . }}
{{ if .Site.Menus.main }} {{ if .Site.Menus.main }}
<ul class="pl0 mr3"> <ul class="pl0 mr3">
{{ range .Site.Menus.main }} {{ range .Site.Menus.main }}