summaryrefslogtreecommitdiff
path: root/layouts/partials/header.html
blob: ed363546f67617205409855ba252fab09ddd7f6f (plain)
1
2
3
<div id="site-header">
  <nav id="global-nav">{{ range .Site.Params.navLinks }}{{ $path := index . 1 }}<a href="{{ $path }}"{{ if $.Params.navPath }}{{ if ne $.Params.navPath "" }}{{ $p := printf "/%s" $.Params.navPath | printf "%s" }}{{ if eq $path $p }} id="nav-link-active"{{ end }}{{ end }}{{ else }}{{ if ne $.Section "" }}{{ $p := printf "/%s" $.Section | printf "%s" }}{{ if eq $path $p }} id="nav-link-active"{{ end }}{{ end }}{{ end }}>{{ index . 0 }}</a>{{ end }}</nav>
</div>