2018-01-02 23:22:17 +02:00
|
|
|
<nav id="primary-nav" class="site-nav" itemscope itemtype="http://schema.org/SiteNavigationElement" aria-label="Main navigation">
|
2017-03-07 23:12:17 +02:00
|
|
|
<ul id="menu-main-navigation" class="menu">
|
|
|
|
<!-- Home link -->
|
|
|
|
<li class="menu-item">
|
|
|
|
<a href="{{ '/' | relative_url }}" itemprop="url">
|
2017-03-10 18:48:55 +02:00
|
|
|
<span itemprop="name">{{ site.data.theme.t.home | default: 'Home' }}</span>
|
2017-03-07 23:12:17 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- site.pages links -->
|
|
|
|
{% assign default_paths = site.pages | map: "path" %}
|
2017-03-10 19:34:54 +02:00
|
|
|
{% assign page_paths = site.data.theme.navigation_pages | default: default_paths %}
|
2017-03-07 23:12:17 +02:00
|
|
|
|
|
|
|
{% for path in page_paths %}
|
|
|
|
{% assign my_page = site.pages | where: "path", path | first %}
|
|
|
|
{% if my_page.title %}
|
|
|
|
<li class="menu-item">
|
|
|
|
<a href="{{ my_page.url | relative_url }}" itemprop="url">
|
|
|
|
<span itemprop="name">{{ my_page.title | escape }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2018-01-02 23:22:17 +02:00
|
|
|
</nav>
|