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

32 lines
745 B
HTML

{{ $currentPage := . }}
<header>
<div class="title-bar">
{{ with resources.Get "img/titre-blanc.png" }}
<a href="{{ $.Site.BaseURL | relURL }}">
<img src="{{ .RelPermalink }}" />
</a>
{{ else }}
<a href="{{ $.Site.BaseURL | relURL }}">{{ .Site.Title }}</a>
{{ end }}
<div class="description">
{{ with $.Site.Params.Description }}
{{ . }}
{{ end }}
</div>
</div>
<nav>
{{ range $.Site.Sections }}
{{ if eq $currentPage.Section .Section }}
<span class="exposed">
{{ .Title | markdownify }}
</span>
{{ else }}
<a href="{{ .Permalink }}">
{{ .Title | markdownify }}
</a>
{{ end }}
{{ end }}
</nav>
</header>