bop-hugo-theme/layouts/partials/header.html

18 lines
388 B
HTML

{{ $currentPage := . }}
<header>
<h1>
<a href="{{ $.Site.BaseURL }}">{{ .Site.Title }}</a>
</h1>
{{ with $.Site.Params.Description }}
{{ . }}
{{ end }}
<nav>
{{ range $.Site.Sections }}
<a href="{{ .Permalink }}" class="{{ if eq $currentPage.Section .Section }}exposed{{ end }}">
{{ .Title | markdownify }}
</a>
{{ end }}
</nav>
</header>