github.com/square/finch@v0.0.0-20240412205204-6530c03e2b96/docs/themes/hugo-geekdoc/layouts/partials/site-header.html (about)

     1  <header class="gdoc-header">
     2    <div class="container flex align-center justify-between">
     3      {{ if .MenuEnabled }}
     4        <label for="menu-control" class="gdoc-nav__control" tabindex="0">
     5          <svg class="gdoc-icon gdoc_menu">
     6            <title>{{ i18n "button_nav_open" }}</title>
     7            <use xlink:href="#gdoc_menu"></use>
     8          </svg>
     9          <svg class="gdoc-icon gdoc_arrow_back">
    10            <title>{{ i18n "button_nav_close" }}</title>
    11            <use xlink:href="#gdoc_arrow_back"></use>
    12          </svg>
    13        </label>
    14      {{ end }}
    15      <div>
    16        <a class="gdoc-brand gdoc-header__link" href="{{ .Root.Site.BaseURL }}">
    17          <span class="flex align-center">
    18            <img
    19              class="gdoc-brand__img"
    20              src="{{ (default "brand.svg" .Root.Site.Params.GeekdocLogo) | relURL }}"
    21              alt=""
    22            />
    23            <span class="gdoc-brand__title">{{ .Root.Site.Title }}</span>
    24          </span>
    25        </a>
    26      </div>
    27      <div class="gdoc-menu-header">
    28        <span class="gdoc-menu-header__items">
    29          {{ if .Root.Site.Data.menu.extra.header }}
    30            {{ partial "menu-extra" (dict "current" .Root "source" .Root.Site.Data.menu.extra.header "target" "header") }}
    31          {{ end }}
    32  
    33  
    34          <span id="gdoc-color-theme">
    35            <svg class="gdoc-icon gdoc_brightness_dark">
    36              <title>{{ i18n "button_toggle_dark" }}</title>
    37              <use xlink:href="#gdoc_brightness_dark"></use>
    38            </svg>
    39            <svg class="gdoc-icon gdoc_brightness_light">
    40              <title>{{ i18n "button_toggle_dark" }}</title>
    41              <use xlink:href="#gdoc_brightness_light"></use>
    42            </svg>
    43            <svg class="gdoc-icon gdoc_brightness_auto">
    44              <title>{{ i18n "button_toggle_dark" }}</title>
    45              <use xlink:href="#gdoc_brightness_auto"></use>
    46            </svg>
    47          </span>
    48  
    49          <span class="gdoc-menu-header__home">
    50            <a href="{{ .Root.Site.BaseURL }}" class="gdoc-header__link">
    51              <svg class="gdoc-icon gdoc_home">
    52                <title>{{ i18n "button_homepage" }}</title>
    53                <use xlink:href="#gdoc_home"></use>
    54              </svg>
    55            </a>
    56          </span>
    57  
    58          {{ partial "language" .Root }}
    59  
    60  
    61          <span class="gdoc-menu-header__control">
    62            <label for="menu-header-control">
    63              <svg class="gdoc-icon gdoc_keyboard_arrow_right">
    64                <use xlink:href="#gdoc_keyboard_arrow_right"></use>
    65                <title>{{ i18n "button_menu_close" }}</title>
    66              </svg>
    67            </label>
    68          </span>
    69        </span>
    70        <label for="menu-header-control" class="gdoc-menu-header__control">
    71          <svg class="gdoc-icon gdoc_keyboard_arrow_left">
    72            <use xlink:href="#gdoc_keyboard_arrow_left"></use>
    73            <title>{{ i18n "button_menu_open" }}</title>
    74          </svg>
    75        </label>
    76      </div>
    77    </div>
    78  </header>