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 }}
|
2020-11-15 19:35:14 +01:00
|
|
|
<h2>
|
2020-11-15 13:53:52 +01:00
|
|
|
<a href="{{ $.Site.BaseURL | relURL }}">{{ .Site.Title }}</a>
|
2020-11-15 19:35:14 +01:00
|
|
|
</h2>
|
2020-11-15 13:53:52 +01:00
|
|
|
{{ 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>
|
|
|
|
|