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

20 lines
444 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-10-14 15:20:21 +02:00
<a href="{{ $.Site.BaseURL }}">{{ .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 }}
<ul class="links">
2020-10-14 15:20:21 +02:00
{{ range $.Site.Sections }}
2020-10-14 01:00:50 +02:00
<li class="link">
2020-10-14 15:20:21 +02:00
<a href="{{ .Permalink }}" class="{{ if eq $currentPage.Section .Section }}exposed{{ end }}">
{{ .Title | markdownify }} >
</a>
2020-10-14 01:00:50 +02:00
</li>
{{ end }}
</ul>
</header>