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

32 lines
728 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 }}
<h2>
<a href="{{ $.Site.BaseURL | relURL }}">{{ .Site.Title }}</a>
</h2>
{{ end }}
<div class="description">
{{ with $.Site.Params.Description }}
{{ . }}
{{ end }}
</div>
</div>
<nav>
{{ range $.Site.Sections }}
{{ if eq $currentPage.Section .Section }}
{{ partial "scope.html" $currentPage }}
{{ else }}
<a href="{{ .Permalink }}">
{{ .Title | markdownify }}
</a>
{{ end }}
{{ end }}
</nav>
</header>