1
0
mirror of https://github.com/ipdb/website.git synced 2024-11-14 09:14:48 +01:00
website/_src/_includes/menu-main.html

30 lines
1.0 KiB
HTML

<nav class="menu menu--main">
<div class="row">
<div class="menu__logo">
<a class="menu__link menu__link--logo" href="/">
<svg class="logo" aria-labelledby="title"><title>Logo IPDB</title><use xlink:href="/assets/img/sprite.svg#logo"></use></svg>
</a>
</div>
<div class="menu__items">
<div class="menu-overflow">
{% for link in site.data.menus.main %}
{% assign active = nil %}
{% if page.url contains link.url %}
{% assign active = 'active' %}
{% endif %}
<a class="menu__link {{ active }}" href="{{ link.url }}">{{ link.title }}</a>
{% endfor %}
<a class="button button--small button--primary" href="{{ site.signup.link }}">{{ site.signup.button_short }}</a>
<a class="button button--small" href="{{ site.login.link }}">{{ site.login.button }}</a>
</div>
</div>
</div>
</nav>