<header class=“header”>
{%- assign default_paths = site.pages | map: "path" -%} {%- assign page_paths = site.header_pages | default: default_paths -%} {%- if page_paths -%} <nav class="nav"> {%- for path in page_paths -%} {%- assign my_page = site.pages | where: "path", path | first -%} {%- if my_page.title -%} <a class="nav-link {% if page.url == my_page.url or page.layout == 'post' and my_page.url == '/' %}nav-link-active{% endif %}" href="{{ my_page.url | relative_url }}"> {%- if my_page.icon -%} <i class="{{ my_page.icon }} nav-icon"></i> {%- endif -%} {{ my_page.title | escape }} </a> {%- endif -%} {%- endfor -%} </nav> {%- endif -%}
</header>