cremeaux/layouts/partials/header.html

24 lines
713 B
HTML
Raw Normal View History

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">
<ol>
<li 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-04 23:45:35 +01:00
<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>
2020-10-21 16:23:05 +02:00
{{ end }}
2020-11-04 23:45:35 +01:00
</ol>
</nav>
</header>