_includes/menu.html in jekyll-theme-simpleton-0.5.0 vs _includes/menu.html in jekyll-theme-simpleton-0.6.0

- old
+ new

@@ -1,17 +1,23 @@ -{% assign sorted_pages = site.html_pages | sort: "menu_weight", "last" %} +{%- assign sorted_pages = site.html_pages | sort: "menu_weight", "last" -%} <nav id="menu"> <ul class="menu-list"> - {% for p in sorted_pages %} - {% unless p.hidden %} - <li - class="menu-item {% if p.url == page.url %}menu-selected{% endif %}" - > - <a class="menu-link" href="{{ p.url }}"> - {{ p.title }} - </a> <!-- .menu-link --> - </li> <!-- .menu-item --> - {% endunless %} - {% endfor %} + + {%- for p in sorted_pages -%} + + {%- unless p.hidden -%} + + <li class="menu-item {% if p.url == page.url %}menu-selected{% endif %}"> + <a class="menu-link" href="{{ p.url }}"> + + {{- p.title -}} + + </a> <!-- .menu-link --> + </li> <!-- .menu-item --> + + {%- endunless -%} + + {%- endfor -%} + </ul> <!-- .menu-list --> - </nav> <!-- #menu --> +</nav> <!-- #menu -->