improved internationalisation

This commit is contained in:
Carmen Bianca Bakker 2017-10-04 22:52:59 +02:00
parent 1e37db6cef
commit a28a494bb1
No known key found for this signature in database
GPG Key ID: 76EBA6F6B6EA2EC9
2 changed files with 18 additions and 5 deletions

View File

@ -1,8 +1,21 @@
<footer class="bg-near-black bottom-0 w-100 pa3" role="contentinfo">
<div class="flex justify-between">
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="{{ .Site.BaseURL }}" >
&copy; {{ now.Format "2006" }} {{ .Site.Title }}
</a>
{{ partial "social-follow.html" . }}
<a class="f4 fw4 hover-white no-underline white-70 dn dib-ns pv2 ph3" href="{{ .Site.BaseURL | relLangURL }}" >
&copy; {{ now.Format "2006" }} {{ .Site.Title }}
</a>
<div class="flex-l">
<a class="f4 fw4 no-underline white-90 dn dib-ns pv2 ph3" href="{{ .Permalink }}">
{{ .Site.Params.languageName | default .Lang }}
</a>
{{ if .IsTranslated }}
{{ range .Translations }}
<a class="f4 fw4 hover-white no-underline white-40 dn dib-ns pv2 ph3" href="{{ .Permalink }}">
{{ .Site.Params.languageName | default .Lang }}
</a>
{{ end}}
{{ end }}
{{ partial "social-follow.html" . }}
</div>
</div>
</footer>

View File

@ -1,6 +1,6 @@
<nav class="pv3 ph3 ph4-ns" role="navigation">
<div class="flex-l justify-between items-center center">
<a href="{{ .Site.BaseURL }}" class="f3 fw2 hover-white no-underline white-90 dib">
<a href="{{ .Site.BaseURL | relLangURL }}" class="f3 fw2 hover-white no-underline white-90 dib">
{{ .Site.Title }}
</a>
<div class="flex-l items-center">