Skip to content
Snippets Groups Projects
Unverified Commit 813147c7 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge pull request #85 from noesya/fix/i18n-translations

Correction de la recherche de traductions
parents f7a09556 7e390e0b
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