cremeaux/layouts/partials/header.html

29 lines
841 B
HTML
Raw Normal View History

2020-11-05 14:14:55 +01:00
2020-11-04 23:45:35 +01:00
<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">
2020-11-05 14:14:55 +01:00
<div class="container">
<div class="logo">
2020-10-21 16:23:05 +02:00
<a href="/" class="">
2020-11-04 23:45:35 +01:00
<img src="/icons/logo.jpg" alt="Blason de Crémeaux" />
2020-10-21 16:23:05 +02:00
</a>
2020-11-05 14:14:55 +01:00
</div>
<button class="open-button">≡ Menu</button>
<ol id="menu">
{{ range .Site.Menus.main }}
<li>
<a href="{{ .URL }}">
<img src="/icons/{{ .Identifier }}.jpg" alt="{{ .Name }}" />
<span>{{ .Name }}</span>
</a>
</li>
{{ end }}
</ol>
<button class="close-button">✖ Fermer</button>
</div>
2020-11-04 23:45:35 +01:00
</nav>
</header>