aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/header.html
blob: b18f748f5fa05c02f133334009b28b68c751e0ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<nav class="header w-full w3-theme-d3 w3-theme-border cf ">
  <div class="max-w-screen-md mx-auto pl-2">
    <!-- <a href="{{ site.BaseURL | relLangURL }}" class="block fl"> -->
    <a href="{{ site.BaseURL | relLangURL }}" class="block fl">
      {{ with resources.Get .Site.Params.logo }}
        <img
          height="{{ site.Params.logo_height }}"
          class="v-btm"
          src="{{ .Permalink }}"
          alt="{{ site.Title }}"
        />
      {{ end }}


      <span class="pl-2 text-4xl leading-normal berkshire-swash">
        {{ .Site.Title }}
      </span>
    </a>
    <input class="menu-btn dn" type="checkbox" id="menu-btn" />
    <label class="fr dn-ns m-2 p-4 menu-icon" for="menu-btn">
      <span class="navicon bg-near-white"></span>
    </label>
    <ul class="m-0 p-0 list overflow-hidden font-sans leading-none">
      {{ range .Site.Menus.main }}
        <li class="fl-ns w3-hover-theme">
          <a class="block p-4 near-white" href="{{ .PageRef | relLangURL }}">
            {{ .Pre }}
            {{- T .Name | title -}}
          </a>
        </li>
      {{ end }}

      {{ if .IsTranslated }}
        <select
          name="lang"
          class="my-2 py-1 tc ba b--black-20 br2 w3-theme-d3 mw3 "
          onchange="self.location=options[selectedIndex].value"
        >
          <option value="{{ .Permalink }}">
            {{ .Language.Lang }}
          </option>
          {{ range .Translations }}
            <option value="{{ .Permalink }}">
              {{ .Language.Lang }}
            </option>
          {{ end }}
        </select>
      {{ end }}
    </ul>
  </div>
</nav>