{% assign default_paths = site.pages | where:"lang", page.lang | sort:"order" | map: "path" %} {% assign page_paths = site.header_pages | default: default_paths %} {% if page.layout != 'home' %} {% assign home_page_path = site.pages | where:"ref", "home" | where:"lang", page.lang | map: "url" | first %} {{ site.title | escape }} {% endif %} {% if page_paths %}
{% for path in page_paths %} {% assign my_page = site.pages | where: "path", path | first %} {% if my_page.title %} {% if my_page.title contains "404" %} {% else %} {{ my_page.title | escape }} {% endif %} {% endif %} {% endfor %}
{% endif %}