feat: Avancement sur le design
This commit is contained in:
@ -1,14 +1,21 @@
|
||||
|
||||
<header class="header">
|
||||
{{ $headless := .Site.GetPage "/" }}
|
||||
{{ $image := $headless.Resources.GetMatch "*" }}
|
||||
{{ $resized := $image.Fill "1400x600 Top"}}
|
||||
<img class="hero" src="{{ $resized.RelPermalink }}" alt="{{ .Title }}" />
|
||||
<header class="header{{ if .IsHome }} home{{ end }}">
|
||||
{{ if .Resources }}
|
||||
{{ $image := .Resources.GetMatch (default "*" .Params.image) }}
|
||||
{{ if $image }}
|
||||
{{ $resized := $image.Fill "1400x600 Center"}}
|
||||
<img class="hero" src="{{ $resized.RelPermalink }}" alt="{{ .Title }}" />
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $headless := .Site.GetPage "/" }}
|
||||
{{ $image := $headless.Resources.GetMatch "*" }}
|
||||
{{ $resized := $image.Fill "1400x600 Top"}}
|
||||
<img class="hero" src="{{ $resized.RelPermalink }}" alt="{{ .Title }}" />
|
||||
{{ end }}
|
||||
<nav class="nav">
|
||||
<div class="container">
|
||||
<div class="logo">
|
||||
<a href="/" class="">
|
||||
<img src="/icons/logo.jpg" alt="Blason de Crémeaux" />
|
||||
<img src="/icons/logo-header.png" alt="Blason de Crémeaux" />
|
||||
</a>
|
||||
</div>
|
||||
<button class="open-button">≡ Menu</button>
|
||||
@ -16,7 +23,7 @@
|
||||
{{ range .Site.Menus.main }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">
|
||||
<img src="/icons/{{ .Identifier }}.jpg" alt="{{ .Name }}" />
|
||||
<img class="icons" src="/icons/{{ .Identifier }}.svg" alt="{{ .Name }}" />
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user