cremeaux/layouts/index.html

23 lines
689 B
HTML
Raw Normal View History

2020-09-02 16:54:03 +02:00
{{ define "all" }}
2020-10-21 16:23:05 +02:00
2020-09-02 16:54:03 +02:00
{{ $image := .Resources.GetMatch "*" }}
{{ $resized := $image.Fill "1400x600 Top"}}
2020-10-21 16:23:05 +02:00
<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>
2020-09-02 16:54:03 +02:00
{{ end }}