1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-25 18:58:41 +01:00
website/_src/_includes/menu-main.html

30 lines
857 B
HTML
Raw Permalink Normal View History

2017-08-24 13:47:28 +02:00
<nav class="menu menu--main">
<div class="row">
<div class="menu__logo">
<a class="menu__link menu__link--logo" href="/">
2018-09-28 17:49:14 +02:00
<svg class="logo" aria-labelledby="title">
<title>Logo IPDB</title>
<use xlink:href="/assets/img/sprite.svg#logo"></use>
</svg>
2017-08-24 13:47:28 +02:00
</a>
</div>
<div class="menu__items">
2017-08-24 15:48:46 +02:00
<div class="menu-overflow">
2017-08-24 13:47:28 +02:00
2017-08-24 15:48:46 +02:00
{% for link in site.data.menus.main %}
2018-09-28 17:49:14 +02:00
{% assign active = nil %}
{% if page.url contains link.url %}
{% assign active = 'active' %}
{% endif %}
2017-08-24 15:48:46 +02:00
2018-09-28 17:49:14 +02:00
<a class="menu__link {{ active }}" href="{{ link.url }}">{{ link.title }}</a>
2017-08-24 15:48:46 +02:00
{% endfor %}
</div>
2017-08-24 13:47:28 +02:00
</div>
</div>
</nav>