add basic support for post translations (#144)
This commit is contained in:
parent
4eacddaea3
commit
85d9218877
10
layouts/partials/i18nlist.html
Normal file
10
layouts/partials/i18nlist.html
Normal 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 }}
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue