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

32 lines
745 B
HTML
Raw Normal View History

2020-10-14 15:20:21 +02:00
{{ $currentPage := . }}
2020-10-14 01:00:50 +02:00
<header>
2020-11-15 16:27:12 +01:00
<div class="title-bar">
{{ with resources.Get "img/titre-blanc.png" }}
2020-11-15 13:53:52 +01:00
<a href="{{ $.Site.BaseURL | relURL }}">
<img src="{{ .RelPermalink }}" />
</a>
{{ else }}
<a href="{{ $.Site.BaseURL | relURL }}">{{ .Site.Title }}</a>
{{ end }}
2020-11-15 16:27:12 +01:00
<div class="description">
{{ with $.Site.Params.Description }}
{{ . }}
{{ end }}
</div>
</div>
2020-11-13 17:39:56 +01:00
<nav>
2020-10-14 15:20:21 +02:00
{{ range $.Site.Sections }}
2020-11-15 16:27:12 +01:00
{{ if eq $currentPage.Section .Section }}
<span class="exposed">
{{ .Title | markdownify }}
</span>
{{ else }}
<a href="{{ .Permalink }}">
{{ .Title | markdownify }}
</a>
{{ end }}
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>