mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-09 09:25:26 -05:00
ec4e6f9df2
git-subtree-dir: docs git-subtree-split: f887bd7b4e3e7c7e76cd63951e5b0d37d8fe0ac7
20 lines
798 B
HTML
20 lines
798 B
HTML
{{ $currentPage := . }}
|
|
{{ $currentURL := .URL }}
|
|
<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>
|