|
| 1 | +{#- |
| 2 | + This file was automatically generated - do not edit |
| 3 | +-#} |
| 4 | +<header class="md-header" data-md-component="header"> |
| 5 | + <nav class="md-header__inner md-grid" aria-label="{{ lang.t('header.title') }}"> |
| 6 | + <a href="https://percona.com/software/documentation" class="md-header__button md-logo" aria-label="{{ config.site_name }}" data-md-component="logo"> |
| 7 | + {% include "partials/logo.html" %} |
| 8 | + </a> |
| 9 | + <label class="md-header__button md-icon" for="__drawer"> |
| 10 | + {% include ".icons/material/menu" ~ ".svg" %} |
| 11 | + </label> |
| 12 | + <div class="md-header__title" data-md-component="header-title"> |
| 13 | + <div class="md-header__ellipsis"> |
| 14 | + <div class="md-header__topic"> |
| 15 | + <span class="md-ellipsis"><a href="https://www.percona.com/software/documentation"> |
| 16 | + Percona Product Documentation |
| 17 | + </a></span> |
| 18 | + </div> |
| 19 | + <div class="md-header__topic" data-md-component="header-topic"> |
| 20 | + <span class="md-ellipsis"> |
| 21 | + {% if page and page.meta and page.meta.title %} |
| 22 | + {{ page.meta.title }} |
| 23 | + {% else %} |
| 24 | + {{ page.title }} |
| 25 | + {% endif %} |
| 26 | + </span> |
| 27 | + </div> |
| 28 | + </div> |
| 29 | + </div> |
| 30 | + {% if not config.theme.palette is mapping %} |
| 31 | + <form class="md-header__option" data-md-component="palette"> |
| 32 | + {% for option in config.theme.palette %} |
| 33 | + {% set primary = option.primary | replace(" ", "-") | lower %} |
| 34 | + {% set accent = option.accent | replace(" ", "-") | lower %} |
| 35 | + <input class="md-option" data-md-color-media="{{ option.media }}" data-md-color-scheme="{{ option.scheme }}" data-md-color-primary="{{ primary }}" data-md-color-accent="{{ accent }}" type="radio" name="__palette" id="__palette_{{ loop.index }}"> |
| 36 | + {% if option.toggle %} |
| 37 | + <label class="md-header__button md-icon" title="{{ option.toggle.name }}" for="__palette_{{ loop.index0 or loop.length }}" hidden> |
| 38 | + {% include ".icons/" ~ option.toggle.icon ~ ".svg" %} |
| 39 | + </label> |
| 40 | + {% endif %} |
| 41 | + {% endfor %} |
| 42 | + </form> |
| 43 | + {% endif %} |
| 44 | + {% if config.extra.alternate %} |
| 45 | + <div class="md-header__option"> |
| 46 | + <div class="md-select"> |
| 47 | + {% set icon = config.theme.icon.alternate or "material/translate" %} |
| 48 | + <button class="md-header__button md-icon"> |
| 49 | + {% include ".icons/" ~ icon ~ ".svg" %} |
| 50 | + </button> |
| 51 | + <div class="md-select__inner"> |
| 52 | + <ul class="md-select__list"> |
| 53 | + {% for alt in config.extra.alternate %} |
| 54 | + <li class="md-select__item"> |
| 55 | + <a href="{{ alt.link | url }}" hreflang="{{ alt.lang }}" class="md-select__link"> |
| 56 | + {{ alt.name }} |
| 57 | + </a> |
| 58 | + </li> |
| 59 | + {% endfor %} |
| 60 | + </ul> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + {% endif %} |
| 65 | + {% if "search" in config["plugins"] %} |
| 66 | + <label class="md-header__button md-icon" for="__search"> |
| 67 | + {% include ".icons/material/magnify.svg" %} |
| 68 | + </label> |
| 69 | + {% include "partials/search.html" %} |
| 70 | + {% endif %} |
| 71 | + {% if config.repo_url %} |
| 72 | + <div class="md-header__source"> |
| 73 | + {% include "partials/source.html" %} |
| 74 | + </div> |
| 75 | + {% endif %} |
| 76 | + </nav> |
| 77 | +</header> |
0 commit comments