aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/header.html
blob: ef345caa6c2264a29462c6e2da2e5b783b180525 (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
<nav class="header w-100 w3-theme-d3 w3-theme-border z-2 cf">
  <a href="{{ site.BaseURL }}" class="pl5 db fl link">

    {{ with resources.Get .Site.Params.logo }}
       <img height="{{ site.Params.logo_height }}" class="v-btm" src="{{ .Permalink }}" alt="{{ site.Title }}">
    {{ end }}

    <span class="near-white pl2 pt0 f2 berkshire-swash">
      {{ .Site.Title }}
    </span>


  </a>
  <input class="menu-btn dn" type="checkbox" id= "menu-btn">
  <label class="fr dn-ns ma2 pa3 menu-icon" for="menu-btn">
    <span class="navicon bg-near-white"></span>
  </label>
  <ul class="ma0 pa0 list overflow-hidden br w3-theme-border">
      {{ range .Site.Menus.main }}
      <li class="fl-ns bl bb br2 w3-hover-theme w3-theme-border ">
        <a class="db f6 pa3 link near-white grow"
           href="{{ .URL }}">{{$text := print .Name | safeHTML }} {{ $text }}
        </a>
      </li>
      {{ end }}
  </ul>
</nav>