hacks-guide-minimal-mistake.../_includes/masthead.html

26 lines
1 KiB
HTML
Raw Normal View History

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">
<a class="site-title" href="{{ '/' | absolute_url }}">{{ site.title }}</a>
2016-04-04 03:23:24 +02:00
<ul class="visible-links">
{% for link in site.data.navigation.main %}
{% if link.url contains 'http' %}
{% assign domain = '' %}
{% else %}
{% assign domain = site.url | append: site.baseurl %}
2016-04-04 03:23:24 +02:00
{% endif %}
2017-12-04 20:44:39 +01:00
<li class="masthead__menu-item">
2017-12-04 20:45:57 +01:00
<a href="{{ domain }}{{ link.url }}" {% if link.description %}title="{{ link.description }}"{% endif %}>{{ link.title }}</a>
2017-12-04 20:44:39 +01:00
</li>
2016-04-04 03:23:24 +02:00
{% endfor %}
</ul>
<button type="button">
<span class="visually-hidden">{{ site.data.ui-text[site.locale].menu_label | default: "Toggle Menu" }}</span>
<div class="navicon"></div>
</button>
2016-04-04 03:23:24 +02:00
<ul class="hidden-links hidden"></ul>
</nav>
</div>
</div>
2016-04-04 03:23:24 +02:00
</div>