_includes/header.html in minima-2.3.0 vs _includes/header.html in minima-2.4.0
- old
+ new
@@ -1,13 +1,13 @@
<header class="site-header" role="banner">
<div class="wrapper">
- {% assign default_paths = site.pages | map: "path" %}
- {% assign page_paths = site.header_pages | default: default_paths %}
+ {%- assign default_paths = site.pages | map: "path" -%}
+ {%- assign page_paths = site.header_pages | default: default_paths -%}
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
- {% if page_paths %}
+ {%- if page_paths -%}
<nav class="site-nav">
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger">
<span class="menu-icon">
<svg viewBox="0 0 18 15" width="18px" height="15px">
@@ -17,16 +17,16 @@
</svg>
</span>
</label>
<div class="trigger">
- {% for path in page_paths %}
- {% assign my_page = site.pages | where: "path", path | first %}
- {% if my_page.title %}
+ {%- for path in page_paths -%}
+ {%- assign my_page = site.pages | where: "path", path | first -%}
+ {%- if my_page.title -%}
<a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
- {% endif %}
- {% endfor %}
+ {%- endif -%}
+ {% endfor -%}
</div>
</nav>
- {% endif %}
+ {%- endif -%}
</div>
</header>