decentralized-id.github.io/_includes/masthead.html

36 lines
1.6 KiB
HTML
Raw Normal View History

2023-02-10 04:44:06 -05:00
{% capture logo_path %}{{ site.logo }}{% endcapture %}
2019-03-28 19:40:33 -04:00
<div class="masthead">
<div class="masthead__inner-wrap">
<div class="masthead__menu">
<nav id="site-nav" class="greedy-nav">
{% unless logo_path == empty %}
2023-02-10 04:44:06 -05:00
<a class="site-logo" href="{{ '/' | relative_url }}"><img src="{{ logo_path | relative_url }}" alt="{{ site.masthead_title | default: site.title }}"></a>
2019-03-28 19:40:33 -04:00
{% endunless %}
2023-02-10 04:44:06 -05: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>
2019-03-28 19:40:33 -04:00
<ul class="visible-links">
{%- for link in site.data.navigation.main -%}
<li class="masthead__menu-item">
2023-02-10 04:44:06 -05:00
<a href="{{ link.url | relative_url }}"{% if link.description %} title="{{ link.description }}"{% endif %}>{{ link.title }}</a>
2019-03-28 19:40:33 -04:00
</li>
{%- endfor -%}
</ul>
{% if site.search == true %}
<button class="search__toggle" type="button">
<span class="visually-hidden">{{ site.data.ui-text[site.locale].search_label | default: "Toggle search" }}</span>
2023-02-10 04:44:06 -05:00
<i class="fas fa-search"></i>
2019-03-28 19:40:33 -04:00
</button>
{% endif %}
<button class="greedy-nav__toggle hidden" type="button">
<span class="visually-hidden">{{ site.data.ui-text[site.locale].menu_label | default: "Toggle menu" }}</span>
<div class="navicon"></div>
</button>
<ul class="hidden-links hidden"></ul>
</nav>
</div>
</div>
</div>