mirror of
https://github.com/netz39/www.netz39.de.git
synced 2025-01-19 04:20:10 +01:00
46 lines
1.6 KiB
Text
46 lines
1.6 KiB
Text
<header class="site-header">
|
|
|
|
<!-- Logo and title -->
|
|
<div class="branding">
|
|
{% if site.avatar %}
|
|
<a href="{{ '/' | relative_url }}">
|
|
<img alt="logo img" class="avatar" src="{{ site.avatar | relative_url }}" loading="lazy"/>
|
|
</a>
|
|
{% endif %}
|
|
<a class="site-title" aria-label="{{ site.title }}" href="{{ '/' | relative_url }}">
|
|
{{ site.title }}
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Toggle menu -->
|
|
<nav class="clear">
|
|
<a aria-label="pull" id="pull" class="toggle" href="#">
|
|
<i class="fas fa-bars fa-lg"></i>
|
|
</a>
|
|
|
|
<!-- Menu -->
|
|
<ul class="hide">
|
|
{% assign name_page = "" %}
|
|
|
|
{% for page in site.pages %}
|
|
{% unless page.title == null or page.hide or name_page contains page.title %}
|
|
<li class="separator"> | </li>
|
|
<li>
|
|
<a class="clear" aria-label="{{ page.title }}" title="{{ page.title }}" href="{{ page.url | relative_url }}">
|
|
{% if page.icon %} <i class="fas {{ page.icon }}" aria-hidden="true"></i>
|
|
{% else %} {{ page.title }} {% endif%}
|
|
</a>
|
|
</li>
|
|
{% endunless %}
|
|
{% assign name_page = page.title | append: name_page %}
|
|
{% endfor %}
|
|
|
|
{% if site.color_theme == 'auto' %}
|
|
<li class="separator"> | </li>
|
|
<li><a id="theme-toggle" title="{{ page.title }} " aria-label="{{ page.title }}" onclick="themeToggle()"></a></li>
|
|
{% endif %}
|
|
<!-- Spacestatus -->
|
|
<li><a href="https://www.netz39.de/status/"><img alt="status" src="https://spaceapi.n39.eu/state.png"></a></li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|