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