1
0
mirror of https://github.com/ipdb/website.git synced 2024-12-30 16:47:45 +01:00
website/_src/_includes/menu-foundation.html

29 lines
1.1 KiB
HTML
Raw Normal View History

2017-08-29 13:51:54 +02:00
<nav class="menu menu--sub menu--foundation section--background">
<div class="row">
<div class="menu-overflow">
<a class="menu__link" href="/foundation/#caretakers" data-scroll>{{ site.data.content-foundation.caretakers.title }}</a>
<a class="menu__link" href="/foundation/#board" data-scroll>{{ site.data.content-foundation.board.title }}</a>
<a class="menu__link" href="/foundation/#vision" data-scroll>{{ site.data.content-foundation.vision.title }}</a>
{% assign current_page = page %}
|
{% for page in site.pages %}
{% if page.path contains 'foundation' %}
{% assign active = nil %}
{% if page.url == current_page.url %}
{% assign active = 'active' %}
{% endif %}
{% unless page.path contains 'foundation/index' %}
<a class="menu__link {{ active }}" href="{{ page.url }}">{{ page.title }}</a>
2017-08-29 13:51:54 +02:00
{% endunless %}
{% endif %}
{% endfor%}
</div>
</div>
</nav>