{% assign pages = site.pages | sort: 'weight' %} {% assign default_paths = pages | map: "path" %} {% assign page_paths = site.header_pages | default: default_paths %} {% assign color = page.color | default: site.theme_color %} {% if page_paths %} {% endif %}