2020-01-12 14:33:02 +00:00
|
|
|
<header class="gdoc-header">
|
2022-01-06 12:58:10 +00:00
|
|
|
<div class="container flex align-center justify-between">
|
|
|
|
{{ if .MenuEnabled }}
|
2022-01-23 12:21:44 +00:00
|
|
|
<label for="menu-control" class="gdoc-nav__control" tabindex="0">
|
2022-01-06 12:58:10 +00:00
|
|
|
<svg class="icon gdoc_menu">
|
2022-01-23 12:21:44 +00:00
|
|
|
<title>{{ i18n "button_nav_open" }}</title>
|
2022-01-06 12:58:10 +00:00
|
|
|
<use xlink:href="#gdoc_menu"></use>
|
|
|
|
</svg>
|
|
|
|
<svg class="icon gdoc_arrow_back">
|
2022-01-23 12:21:44 +00:00
|
|
|
<title>{{ i18n "button_nav_close" }}</title>
|
2022-01-06 12:58:10 +00:00
|
|
|
<use xlink:href="#gdoc_arrow_back"></use>
|
|
|
|
</svg>
|
|
|
|
</label>
|
|
|
|
{{ end }}
|
2022-01-23 12:21:44 +00:00
|
|
|
<div>
|
|
|
|
<a class="gdoc-brand gdoc-header__link" href="{{ .Root.Site.BaseURL }}">
|
|
|
|
<span class="flex align-center">
|
|
|
|
<img
|
|
|
|
class="gdoc-brand__img"
|
|
|
|
src="{{ (default "brand.svg" .Root.Site.Params.GeekdocLogo) | relURL }}"
|
|
|
|
alt=""
|
|
|
|
/>
|
|
|
|
<span class="gdoc-brand__title">{{ .Root.Site.Title }}</span>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-01-06 12:58:10 +00:00
|
|
|
<div class="gdoc-menu-header">
|
2022-01-23 12:21:44 +00:00
|
|
|
<span
|
|
|
|
{{ if .Root.Site.Data.menu.extra.header }}class="gdoc-menu-header__items"{{ end }}
|
|
|
|
>
|
2022-01-06 12:58:10 +00:00
|
|
|
{{ if .Root.Site.Data.menu.extra.header }}
|
|
|
|
{{ partial "menu-extra" (dict "current" .Root "source" .Root.Site.Data.menu.extra.header "target" "header") }}
|
2020-02-24 21:11:13 +00:00
|
|
|
{{ end }}
|
2022-01-23 12:21:44 +00:00
|
|
|
|
|
|
|
|
2022-01-06 12:58:10 +00:00
|
|
|
<span id="gdoc-dark-mode">
|
|
|
|
<svg class="icon gdoc_brightness_dark">
|
2022-01-23 12:21:44 +00:00
|
|
|
<title>{{ i18n "button_toggle_dark" }}</title>
|
2022-01-06 12:58:10 +00:00
|
|
|
<use xlink:href="#gdoc_brightness_dark"></use>
|
|
|
|
</svg>
|
|
|
|
<svg class="icon gdoc_brightness_light">
|
2022-01-23 12:21:44 +00:00
|
|
|
<title>{{ i18n "button_toggle_dark" }}</title>
|
2022-01-06 12:58:10 +00:00
|
|
|
<use xlink:href="#gdoc_brightness_light"></use>
|
|
|
|
</svg>
|
|
|
|
<svg class="icon gdoc_brightness_auto">
|
2022-01-23 12:21:44 +00:00
|
|
|
<title>{{ i18n "button_toggle_dark" }}</title>
|
2022-01-06 12:58:10 +00:00
|
|
|
<use xlink:href="#gdoc_brightness_auto"></use>
|
|
|
|
</svg>
|
|
|
|
</span>
|
2022-01-23 12:21:44 +00:00
|
|
|
|
2022-01-06 12:58:10 +00:00
|
|
|
{{ if .Root.Site.Data.menu.extra.header }}
|
|
|
|
<span class="gdoc-menu-header__home">
|
2021-10-15 09:50:11 +00:00
|
|
|
<a href="{{ .Root.Site.BaseURL }}" class="gdoc-header__link">
|
2022-01-06 12:58:10 +00:00
|
|
|
<svg class="icon gdoc_home">
|
2022-01-23 12:21:44 +00:00
|
|
|
<title>{{ i18n "button_homepage" }}</title>
|
2022-01-06 12:58:10 +00:00
|
|
|
<use xlink:href="#gdoc_home"></use>
|
|
|
|
</svg>
|
2021-08-24 15:45:40 +00:00
|
|
|
</a>
|
2022-01-06 12:58:10 +00:00
|
|
|
</span>
|
2022-01-23 12:21:44 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ partial "language" .Root }}
|
|
|
|
|
|
|
|
{{ if .Root.Site.Data.menu.extra.header }}
|
2022-01-06 12:58:10 +00:00
|
|
|
<span class="gdoc-menu-header__control">
|
2021-10-15 09:50:11 +00:00
|
|
|
<label for="menu-header-control">
|
2022-01-27 21:03:12 +00:00
|
|
|
<svg class="icon gdoc_keyboard_arrow_right">
|
|
|
|
<use xlink:href="#gdoc_keyboard_arrow_right"></use>
|
2022-01-23 12:21:44 +00:00
|
|
|
<title>{{ i18n "button_menu_close" }}</title>
|
2022-01-06 12:58:10 +00:00
|
|
|
</svg>
|
2021-08-12 16:17:49 +00:00
|
|
|
</label>
|
2022-01-06 12:58:10 +00:00
|
|
|
</span>
|
|
|
|
{{ end }}
|
|
|
|
</span>
|
|
|
|
{{ if .Root.Site.Data.menu.extra.header }}
|
|
|
|
<label for="menu-header-control" class="gdoc-menu-header__control">
|
2022-01-27 21:03:12 +00:00
|
|
|
<svg class="icon gdoc_keyboard_arrow_left">
|
|
|
|
<use xlink:href="#gdoc_keyboard_arrow_left"></use>
|
2022-01-23 12:21:44 +00:00
|
|
|
<title>{{ i18n "button_menu_open" }}</title>
|
2022-01-06 12:58:10 +00:00
|
|
|
</svg>
|
|
|
|
</label>
|
|
|
|
{{ end }}
|
2020-01-12 14:33:02 +00:00
|
|
|
</div>
|
2022-01-06 12:58:10 +00:00
|
|
|
</div>
|
2020-01-12 14:33:02 +00:00
|
|
|
</header>
|