2021-05-18 16:22:28 +02:00
|
|
|
|
<header>
|
2021-05-25 03:25:30 +02:00
|
|
|
|
<section class="hero is-primary has-text-centered is-medium">
|
2021-05-27 00:26:57 +02:00
|
|
|
|
<div class="hero-head mx-5">
|
|
|
|
|
<div class="level subtitle is-5">
|
|
|
|
|
<div class="level-left">
|
|
|
|
|
{{ with .Params.imgLicence }}
|
|
|
|
|
<div class="level-item">
|
|
|
|
|
Image d'illustration {{ . }}
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="level-right">
|
|
|
|
|
<div class="level-item">
|
|
|
|
|
{{ with .Params.categories }}
|
|
|
|
|
<div class="tags colums is-vcentered mb-2 mt-5">
|
|
|
|
|
{{ range . }}
|
|
|
|
|
<span class="tag is-info is-light is-large mr-4"><a href="{{ "categories" | absURL }}/{{ . | urlize }}">{{ . }}</a></span>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</div>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-05-21 23:50:10 +02:00
|
|
|
|
</div>
|
2021-05-27 00:26:57 +02:00
|
|
|
|
|
2021-05-25 03:25:30 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="hero-body">
|
|
|
|
|
<p class="title is-1 is-uppercase">{{ .Title }}</p>
|
|
|
|
|
{{ with .Params.subtitle }}
|
|
|
|
|
<p class="subtitle is-2">{{ . }}</p>
|
|
|
|
|
{{ 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">
|
|
|
|
|
<div class="level subtitle is-5">
|
|
|
|
|
<div class="level-left">
|
|
|
|
|
<div class="level-item has-text-left">
|
|
|
|
|
<time class="" datetime="{{ .Date.Format `2006-01-02T15:04:05Z07:00` | safeHTML }}">
|
2021-05-25 03:45:38 +02:00
|
|
|
|
<p class="mb-2">📅 Article publié le <strong>{{ .Date.Day }} {{ index $.Site.Data.months_fr (printf "%d" .Date.Month) }} {{ .Date.Year }}</strong></p>
|
|
|
|
|
<p>✏️ Dernière modification le <strong>{{ .Lastmod.Day }} {{ index $.Site.Data.months_fr (printf "%d" .Lastmod.Month) }} {{ .Lastmod.Year }}</strong></p>
|
2021-05-22 00:16:10 +02:00
|
|
|
|
</time>
|
2021-05-25 03:25:30 +02:00
|
|
|
|
</div>
|
2021-05-22 00:16:10 +02:00
|
|
|
|
</div>
|
2021-05-25 03:25:30 +02:00
|
|
|
|
<div class="level-right">
|
|
|
|
|
<div class="level-item has-text-right">
|
|
|
|
|
<div>
|
2021-05-25 03:45:38 +02:00
|
|
|
|
<p class="mb-2">🕑 Environ <strong>{{ div .FuzzyWordCount 230 }} minutes</strong> de lecture</p>
|
|
|
|
|
<p>#️ <strong>{{ .FuzzyWordCount }} mots</strong></p>
|
2021-05-25 03:25:30 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-05-21 14:53:35 +02:00
|
|
|
|
</div>
|
2021-05-25 03:25:30 +02:00
|
|
|
|
{{ end }}
|
2021-05-21 14:53:35 +02:00
|
|
|
|
</section>
|
2021-05-18 16:22:28 +02:00
|
|
|
|
</header>
|