2023-10-28 08:20:52 +00:00
|
|
|
|
{{ define "main" }}
|
2024-08-12 20:26:37 +00:00
|
|
|
|
<main class="container">
|
2023-10-28 08:20:52 +00:00
|
|
|
|
<article class="article">
|
2024-08-12 20:26:37 +00:00
|
|
|
|
<h1 class="page-title">{{ .Title }}</h1>
|
2023-10-28 08:20:52 +00:00
|
|
|
|
|
2024-08-12 20:26:37 +00:00
|
|
|
|
<p class="text-small">
|
|
|
|
|
{{ with .Date }}
|
|
|
|
|
<span>Publié le <b><time>{{ . | time.Format ":date_full" }}</time></b>,</span>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ with .Lastmod }}
|
|
|
|
|
<span>Mis à jour le <b><time>{{ . | time.Format ":date_full" }}</time></b></span>
|
|
|
|
|
{{ end }}
|
|
|
|
|
</p>
|
2024-09-03 21:59:29 +00:00
|
|
|
|
<p class="article__tags">
|
|
|
|
|
{{- range $index, $element := .Params.tags -}}
|
|
|
|
|
{{- with $element -}}
|
|
|
|
|
<span>{{- if $index -}}, {{- end -}}</span>
|
|
|
|
|
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
|
|
|
|
{{- end -}}
|
|
|
|
|
{{ end }}
|
|
|
|
|
</p>
|
2023-10-28 08:20:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ if .Params.featured_image }}
|
|
|
|
|
{{ $featuredImage := .Resources.GetMatch (.Params.featured_image.src | safeURL) }}
|
|
|
|
|
{{ if $featuredImage }}
|
2024-09-01 12:43:39 +00:00
|
|
|
|
{{ $featuredImage = $featuredImage.Resize "900x" }}
|
|
|
|
|
<figure class="figure" style="max-width: 600px">
|
2024-08-31 19:37:26 +00:00
|
|
|
|
<img class="figure-img img-fluid" alt="" src="{{ $featuredImage.RelPermalink }}" />
|
2023-10-28 08:20:52 +00:00
|
|
|
|
{{ with .Params.featured_image.caption }}
|
2024-08-31 19:37:26 +00:00
|
|
|
|
<figcaption class="figure-caption">{{ . }}</figcaption>
|
2023-10-28 08:20:52 +00:00
|
|
|
|
{{ end }}
|
|
|
|
|
</figure>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
2024-09-03 21:59:29 +00:00
|
|
|
|
|
|
|
|
|
<div class="article__text">
|
|
|
|
|
{{ .Content }}
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-10-28 08:20:52 +00:00
|
|
|
|
</article>
|
|
|
|
|
</main>
|
|
|
|
|
{{ end }}
|