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

18 lines
397 B
HTML
Raw Normal View History

2020-10-14 15:20:21 +02:00
{{ $currentPage := . }}
2020-10-14 01:00:50 +02:00
<header>
<h1>
2020-11-14 10:33:45 +01:00
<a href="{{ $.Site.BaseURL | relURL }}">{{ .Site.Title }}</a>
2020-10-14 01:00:50 +02:00
</h1>
2020-10-14 15:20:21 +02:00
{{ with $.Site.Params.Description }}
2020-10-14 01:00:50 +02:00
{{ . }}
{{ end }}
2020-11-13 17:39:56 +01:00
<nav>
2020-10-14 15:20:21 +02:00
{{ range $.Site.Sections }}
2020-11-13 17:39:56 +01:00
<a href="{{ .Permalink }}" class="{{ if eq $currentPage.Section .Section }}exposed{{ end }}">
{{ .Title | markdownify }}
</a>
2020-10-14 01:00:50 +02:00
{{ end }}
2020-11-13 17:39:56 +01:00
</nav>
2020-10-14 01:00:50 +02:00
</header>