1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 09:46:57 +01:00
site/_src/_includes/menu-main.html

39 lines
1.4 KiB
HTML

<nav class="menu menu--main">
<div class="row row--wide">
<div class="grid grid--full grid-medium--columns grid--center">
<div class="grid__col grid__col--2">
<a class="menu__logo" href="/">
<svg class="logo logo--sm logo--white--green" aria-labelledby="title">
<title>Logo</title>
<use xlink:href="/assets/img/sprite.svg#logo"></use>
</svg>
</a>
{% if site.hiring == true %}
<a class="menu__hiring" href="https://github.com/bigchaindb/org/tree/master/jobs" rel="external">
<svg class="icon icon--suitcase"><use xlink:href="/assets/img/sprite.svg#icon-suitcase"></use></svg>
We're hiring!
</a>
{% endif %}
</div>
<div class="grid__col grid__col--4">
<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 }} js-tracking-menu" href="{{ link.url }}">{{ link.title }}</a>
{% endfor %}
</div>
</div>
</div>
</div>
</nav>