24 lines
713 B
HTML
24 lines
713 B
HTML
<header class="header">
|
|
{{ $headless := .Site.GetPage "/" }}
|
|
{{ $image := $headless.Resources.GetMatch "*" }}
|
|
{{ $resized := $image.Fill "1400x600 Top"}}
|
|
<img class="hero" src="{{ $resized.RelPermalink }}" alt="{{ .Title }}" />
|
|
<nav class="nav">
|
|
<ol>
|
|
<li class="logo">
|
|
<a href="/" class="">
|
|
<img src="/icons/logo.jpg" alt="Blason de Crémeaux" />
|
|
</a>
|
|
<li>
|
|
{{ range .Site.Menus.main }}
|
|
<li class="link">
|
|
<a href="{{ .URL }}" class="m-2 btn btn-primary {{ .Pre }}">
|
|
<img src="/icons/{{ .Identifier }}.jpg" alt="{{ .Name }}" />
|
|
<span>{{ .Name }}</span>
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
</ol>
|
|
</nav>
|
|
</header>
|