2022-11-05 23:12:24 +01:00
|
|
|
<!-- Allow to skip heading, for example in an about page -->
|
|
|
|
{{ if not .Params.noheader }}
|
|
|
|
<!-- Display background only for regular pages, or home -->
|
|
|
|
{{ $background := in "page home" .Kind }}
|
2021-05-18 16:22:28 +02:00
|
|
|
<header>
|
2022-11-07 01:15:03 +01:00
|
|
|
<section class='hero has-text-centered {{ if $background }}is-large is-info has-bg-img{{ end }}'>
|
|
|
|
<div class="blur">
|
|
|
|
<div class="hero-head mx-5">
|
2022-11-07 01:43:18 +01:00
|
|
|
<div class="level mt-4">
|
2022-11-07 01:15:03 +01:00
|
|
|
<div class="level-left">
|
|
|
|
{{ with .Params.imgLicence }}
|
2022-11-07 01:43:18 +01:00
|
|
|
<p class="level-item subtitle is-size-5-desktop is-size-7-mobile">
|
2022-11-07 01:15:03 +01:00
|
|
|
Image d'illustration {{ . }}
|
2022-11-07 01:43:18 +01:00
|
|
|
</p>
|
2022-11-07 01:15:03 +01:00
|
|
|
{{ end }}
|
2021-05-27 00:26:57 +02:00
|
|
|
</div>
|
2022-11-07 01:43:18 +01:00
|
|
|
<div class="level-right mt-3 is-hidden-touch">
|
2022-11-07 01:15:03 +01:00
|
|
|
<div class="level-item">
|
|
|
|
{{ with .Params.categories }}
|
2022-11-07 01:43:18 +01:00
|
|
|
<div class="tags colums is-vcentered">
|
2022-11-07 01:15:03 +01:00
|
|
|
{{ range . }}
|
2023-01-20 18:37:36 +01:00
|
|
|
<span class="tag is-info is-light is-large mr-4"><a href="{{ " categories" | absURL }}/{{ . | urlize }}">{{ . }}</a></span>
|
2022-11-07 01:15:03 +01:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2021-05-27 00:26:57 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-11-07 01:15:03 +01:00
|
|
|
</div>
|
2022-11-07 01:54:41 +01:00
|
|
|
<div class="hero-body {{ if not $background }}pb-0{{ end }} container has-text-centered">
|
2022-11-07 02:05:58 +01:00
|
|
|
<p class="title is-size-1-desktop is-size-3-mobile is-uppercase">{{ .Title }}</p>
|
2022-11-07 01:15:03 +01:00
|
|
|
{{ with .Params.subtitle }}
|
2022-11-07 02:05:58 +01:00
|
|
|
<p class="mt-5 subtitle is-size-2-desktop is-size-5-mobile">{{ . }}</p>
|
2022-11-07 01:15:03 +01:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
<!-- Words and date stuff makes sens only for blog posts, not other pages -->
|
|
|
|
{{ if (and .IsPage (eq .FirstSection.Section "posts"))}}
|
|
|
|
<div class="hero-foot mb-5 mx-5 content">
|
2022-11-07 01:43:18 +01:00
|
|
|
<div class="level">
|
2022-11-07 01:15:03 +01:00
|
|
|
<div class="level-left">
|
|
|
|
<div class="level-item has-text-left">
|
|
|
|
<time datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}">
|
2023-01-20 18:37:36 +01:00
|
|
|
<p class="mb-2 subtitle is-size-5-desktop is-size-7-mobile">📅 Article publié le <strong>{{ .Date.Day }} {{ index $.Site.Data.months_fr (printf "%d" .Date.Month) }} {{ .Date.Year }}</strong></p>
|
2022-11-07 01:15:03 +01:00
|
|
|
</time>
|
|
|
|
</div>
|
2021-05-25 03:25:30 +02:00
|
|
|
</div>
|
2023-01-20 18:37:36 +01:00
|
|
|
<div class="level-right">
|
2022-11-07 01:15:03 +01:00
|
|
|
<div class="level-item has-text-right">
|
|
|
|
<div>
|
2022-11-07 01:54:41 +01:00
|
|
|
<p class="mb-2 subtitle is-size-5-desktop is-size-7-mobile">🕑 Environ <strong>{{ div .FuzzyWordCount 230 }} minutes</strong> de lecture
|
2022-11-07 01:15:03 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
2021-05-25 03:25:30 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-07 01:15:03 +01:00
|
|
|
{{ end }}
|
2021-05-21 14:53:35 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
2021-05-18 16:22:28 +02:00
|
|
|
</header>
|
2022-11-05 23:12:24 +01:00
|
|
|
{{ end }}
|