{% assign default_paths = site.pages | map: "path" %} {% assign page_paths = site.header_pages | default: default_paths %} {% for file in site.static_files %} {% if file.basename == 'logo' %} site logo {% break %} {% elsif forloop.last == true %} {{ site.title | escape }} {% endif %} {% endfor %} {% if page_paths %}
{% for path in page_paths %} {% assign my_page = site.pages | where: "path", path | first %} {% if my_page.title %} {{ my_page.title | escape }} {% endif %} {% endfor %}
{% endif %}