diff --git a/_includes/header.html b/_includes/header.html index 90427c55..37e3521b 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -21,14 +21,15 @@ {% assign langmenu = false %} {% endif %} {% if langmenu %} - {% assign posts = site.pages | concat: site.doc | concat: site.translated | where:'ref', page.ref | sort: 'lang' %} + + {% assign page_all_langs = site.pages | concat: site.doc | concat: site.translated | where:'ref', page.ref | sort: 'lang' %}
- {% for post in posts %} - {% if site.languages contains post.lang %} - {{ post.lang }} + {% for translated in page_all_langs %} + {% if site.languages contains translated.lang %} + {{ translated.lang }} {% endif %} {% endfor %}
@@ -57,8 +58,8 @@
- {% for post in posts %} - {{ post.lang }} + {% for translated in page_all_langs %} + {{ translated.lang }} {% endfor %}