5-72

5-72.com helps novice musicians master sound engineering by analyzing the FX chains of world-famous artists
Log | Files | Refs

header.html (3696B)


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