2020-01-12 15:33:02 +01:00
|
|
|
<header class="gdoc-header">
|
|
|
|
<div class="container flex align-center justify-between">
|
2020-02-24 22:11:13 +01:00
|
|
|
{{ if .MenuEnabled }}
|
2020-01-12 15:33:02 +01:00
|
|
|
<label for="menu-control" class="gdoc-nav__control">
|
2021-08-12 18:17:49 +02:00
|
|
|
<svg class="icon gdoc_menu">
|
|
|
|
<title>Open Nav Menu</title>
|
|
|
|
<use xlink:href="#gdoc_menu"></use>
|
|
|
|
</svg>
|
|
|
|
<svg class="icon gdoc_arrow_back">
|
|
|
|
<title>Close Nav Menu</title>
|
|
|
|
<use xlink:href="#gdoc_arrow_back"></use>
|
|
|
|
</svg>
|
2020-01-12 15:33:02 +01:00
|
|
|
</label>
|
2020-02-24 22:11:13 +01:00
|
|
|
{{ end }}
|
|
|
|
<a class="gdoc-header__link" href="{{ .Root.Site.BaseURL }}">
|
2020-01-12 15:33:02 +01:00
|
|
|
<span class="gdoc-brand flex align-center">
|
2021-03-04 21:25:25 +01:00
|
|
|
<img class="gdoc-brand__img" src="{{ (default "brand.svg" .Root.Site.Params.GeekdocLogo) | relURL }}" alt="">
|
2021-07-20 09:58:41 +02:00
|
|
|
<span class="gdoc-brand__title">{{ .Root.Site.Title }}</span>
|
2020-01-12 15:33:02 +01:00
|
|
|
</span>
|
|
|
|
</a>
|
2021-08-12 18:17:49 +02:00
|
|
|
<div class="gdoc-menu-header">
|
|
|
|
{{ if .Root.Site.Data.menu.extra.header }}
|
|
|
|
<span class="gdoc-menu-header__items">
|
|
|
|
{{ partial "menu-extra" (dict "current" .Root "source" .Root.Site.Data.menu.extra.header "target" "header") }}
|
|
|
|
{{ end }}
|
|
|
|
<span id="gdoc-dark-mode">
|
|
|
|
<svg class="icon gdoc_brightness_dark">
|
|
|
|
<title>Toggle Dark/Light/Auto mode</title>
|
|
|
|
<use xlink:href="#gdoc_brightness_dark"></use>
|
|
|
|
</svg>
|
|
|
|
<svg class="icon gdoc_brightness_light">
|
|
|
|
<title>Toggle Dark/Light/Auto mode</title>
|
|
|
|
<use xlink:href="#gdoc_brightness_light"></use>
|
|
|
|
</svg>
|
|
|
|
<svg class="icon gdoc_brightness_auto">
|
|
|
|
<title>Toggle Dark/Light/Auto mode</title>
|
|
|
|
<use xlink:href="#gdoc_brightness_auto"></use>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
{{ if .Root.Site.Data.menu.extra.header }}
|
|
|
|
<label for="menu-header-control" class="gdoc-menu-header__control">
|
|
|
|
<svg class="icon gdoc_keyborad_arrow_right">
|
|
|
|
<use xlink:href="#gdoc_keyborad_arrow_right"></use>
|
|
|
|
<title>Close Menu Bar</title>
|
|
|
|
</svg>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
<label for="menu-header-control" class="gdoc-menu-header__control">
|
|
|
|
<svg class="icon gdoc_keyborad_arrow_left">
|
|
|
|
<use xlink:href="#gdoc_keyborad_arrow_left"></use>
|
|
|
|
<title>Open Menu Bar</title>
|
|
|
|
</svg>
|
|
|
|
</label>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2020-01-12 15:33:02 +01:00
|
|
|
</div>
|
|
|
|
</header>
|