about summary refs log tree commit diff
path: root/users/fcuny/notes/layouts/partials/header.html
blob: f9188238c31cd880c89f338156abc0dac9baf6a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<header>
  <nav>
    <a href="{{ .Site.Home.Permalink }}">{{ .Site.Home.Title }}</a>
    <ul>
      {{ $currentPage := . }}
      {{ range .Site.Menus.main }}
      <li>
        <a class='{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }}menu-active{{ end }}' href="{{ absURL .URL }}">
          {{ .Title }}
        </a>
      </li>
      {{ end }}
    </ul>
  </nav>
</header>