cremeaux/layouts/index.html

23 lines
689 B
HTML

{{ define "all" }}
{{ $image := .Resources.GetMatch "*" }}
{{ $resized := $image.Fill "1400x600 Top"}}
<div class="hero hero-lg hero-image" style="background-image:linear-gradient(to bottom, #003f89, rgba(216,216,216,0)),url({{ $resized.RelPermalink }})">
<div class="hero-body">
<div class="container grid-xl">
<div class="columns">
<div class="column col-7">
<h2>Bienvenue sur le nouveau site de Crémeaux</h2>
</div>
</div>
</div>
</div>
</div>
<div class="container grid-lg contenu {{ if .Params.Image }}contenu-image{{end}}">
<h1>{{ .Title }}</h1>
<div class="container grid-sm">
{{ .Content }}
</div>
</div>
{{ end }}