2020-01-29 18:48:13 +01:00
|
|
|
{% capture logo_path %}{{ site.logo }}{% endcapture %}
|
2019-01-15 15:07:56 +01:00
|
|
|
|
2016-03-10 19:06:59 +01:00
|
|
|
<div class="masthead">
|
2016-04-04 03:23:24 +02:00
|
|
|
<div class="masthead__inner-wrap">
|
|
|
|
<div class="masthead__menu">
|
|
|
|
<nav id="site-nav" class="greedy-nav">
|
2019-01-24 02:05:17 +01:00
|
|
|
{% unless logo_path == empty %}
|
2021-03-03 16:00:20 +01:00
|
|
|
<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path | relative_url }}" alt="{{ site.masthead_title | default: site.title }}"></a>
|
2019-01-24 02:05:17 +01:00
|
|
|
{% endunless %}
|
2024-01-13 19:08:56 +01:00
|
|
|
<!-- hacks-guide change start: disable default masthead title -->
|
|
|
|
<!--
|
2019-07-17 17:46:37 +02:00
|
|
|
<a class="site-title" href="{{ '/' | relative_url }}">
|
|
|
|
{{ site.masthead_title | default: site.title }}
|
|
|
|
{% if site.subtitle %}<span class="site-subtitle">{{ site.subtitle }}</span>{% endif %}
|
|
|
|
</a>
|
2024-01-13 19:08:56 +01:00
|
|
|
-->
|
|
|
|
<!-- hacks-guide change end -->
|
2016-04-04 03:23:24 +02:00
|
|
|
<ul class="visible-links">
|
2024-01-13 19:10:00 +01:00
|
|
|
<!-- hacks-guide change start: multi-language configuration -->
|
|
|
|
{% assign split_path = page.path | split: "/" %}
|
|
|
|
{% assign locale = split_path[1] %}
|
|
|
|
{% assign titles = site.data.navigation[locale].main %}
|
|
|
|
{% if locale == 'en_US' %}
|
|
|
|
{% assign locale_var = '/' %}
|
|
|
|
{% else %}
|
|
|
|
{% assign locale_var = locale | prepend:'/' | append:'/' %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% for link in site.data.navigation[locale].main %}
|
|
|
|
{% if link.url == "/" %}
|
|
|
|
<li class="masthead__menu-item masthead__menu-item--lg"><a href="{{ domain }}{{ locale_var }}">{{ link.title }}</a></li>
|
|
|
|
{% else %}
|
|
|
|
<li class="masthead__menu-item"><a href="{{ domain }}{{ locale_var }}{{ link.url }}">{{ link.title }}</a></li>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
<!-- hacks-guide change end -->
|
2017-12-07 14:56:14 +01:00
|
|
|
{% if site.search == true %}
|
|
|
|
<button class="search__toggle" type="button">
|
2019-01-02 00:33:51 +01:00
|
|
|
<span class="visually-hidden">{{ site.data.ui-text[site.locale].search_label | default: "Toggle search" }}</span>
|
2021-06-23 14:06:03 +02:00
|
|
|
<i class="fas fa-search"></i>
|
2017-12-07 14:56:14 +01:00
|
|
|
</button>
|
|
|
|
{% endif %}
|
2018-01-09 19:56:09 +01:00
|
|
|
<button class="greedy-nav__toggle hidden" type="button">
|
2019-01-02 00:33:51 +01:00
|
|
|
<span class="visually-hidden">{{ site.data.ui-text[site.locale].menu_label | default: "Toggle menu" }}</span>
|
2017-10-04 17:10:41 +02:00
|
|
|
<div class="navicon"></div>
|
|
|
|
</button>
|
2016-04-04 03:23:24 +02:00
|
|
|
<ul class="hidden-links hidden"></ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
2016-03-21 21:01:19 +01:00
|
|
|
</div>
|
2018-08-13 14:00:39 +02:00
|
|
|
</div>
|