hugo-geekdoc/layouts/partials/site-header.html

22 lines
1.1 KiB
HTML
Raw Normal View History

2020-01-12 14:33:02 +00:00
<header class="gdoc-header">
<div class="container flex align-center justify-between">
2020-02-24 21:11:13 +00:00
{{ if .MenuEnabled }}
2020-01-12 14:33:02 +00:00
<label for="menu-control" class="gdoc-nav__control">
<svg class="icon gdoc_menu"><use xlink:href="#gdoc_menu"></use></svg>
<svg class="icon gdoc_arrow_back"><use xlink:href="#gdoc_arrow_back"></use></svg>
2020-01-12 14:33:02 +00:00
</label>
2020-02-24 21:11:13 +00:00
{{ end }}
<a class="gdoc-header__link" href="{{ .Root.Site.BaseURL }}">
2020-01-12 14:33:02 +00:00
<span class="gdoc-brand 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>
2020-01-12 14:33:02 +00:00
</span>
</a>
2021-04-27 21:44:35 +00:00
<span id="gdoc-dark-mode">
<svg class="icon gdoc_brightness_dark"><use xlink:href="#gdoc_brightness_dark"></use></svg>
<svg class="icon gdoc_brightness_light"><use xlink:href="#gdoc_brightness_light"></use></svg>
<svg class="icon gdoc_brightness_auto"><use xlink:href="#gdoc_brightness_auto"></use></svg>
</span>
2020-01-12 14:33:02 +00:00
</div>
</header>