hugo/_vendor/github.com/gohugoio/gohugoioTheme/layouts/partials/page-header.html
Bjørn Erik Pedersen 5ac0f751aa Squashed 'docs/' changes from 0584815c8..723da4a37
723da4a37 Vendor the theme

git-subtree-dir: docs
git-subtree-split: 723da4a3769ee8a6c02758b553618143f92fccef
2019-10-21 10:52:23 +02:00

20 lines
807 B
HTML

{{ $currentPage := . }}
{{ $currentURL := .RelPermalink }}
<header class="ph4 flex pv4 bg-light-gray">
<ul class="list ma0 pa0 ">
<!-- TODO: Active classes -->
<li class="f5 dib mr3 mb3 mb0-ns v-top white">
<a href="/news/" class="link primary-color-dark dim">
News:
</a>
</li>
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
{{ $link := $name | printf "%s%s" "/categories/" | printf "%s/" }}
<li class="f5 dib mr3 v-top mr3 mb3 mb0-ns">
<a href="{{ $link }}" class="link {{ if eq $currentURL $link }} bg-primary-color-dark {{ else }} bg-primary-color-dark {{ end }} white ph3 pv1 br2 hover-bg-accent-color-light">
{{ $name | humanize }}
</a>
</li>
{{ end }}
</ul>
</header>