add basic support for post translations (#144)

This commit is contained in:
Jan Steinke 2019-01-08 01:51:26 +01:00 committed by Bud Parr
parent 4eacddaea3
commit 85d9218877
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 }}
</a>
<div class="flex-l items-center">
{{ partial "i18nlist.html" . }}
{{ if .Site.Menus.main }}
<ul class="pl0 mr3">
{{ range .Site.Menus.main }}