Skip to content
Snippets Groups Projects
Unverified Commit 7e390e0b authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix i18n translations lookup

parent f7a09556
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
{{ partial "footer/site.html" }}
</div>
</div>
{{ partial "footer/i18n.html" }}
{{ partial "footer/i18n.html" . }}
<div class="container">
<div class="footer-social">
{{ partial "footer/social.html" }}
......
{{ $page := . }}
{{ $pageWithTranslations := $page.Translations | append $page }}
{{ $siteLang := "" }}
{{ $url := "" }}
{{ if gt (len site.Languages) 1 }}
......@@ -9,7 +10,7 @@
{{ range site.Languages }}
{{ $siteLang := . }}
{{ $url = printf "/%s/" .Lang }}
{{ range $page.Translations }}
{{ range $pageWithTranslations }}
{{ if eq .Lang $siteLang.Lang }}
{{ $url = .Permalink }}
{{ end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment