2022-09-28 20:49:59 +00:00
|
|
|
{{ define "main" }}
|
2022-09-29 17:00:28 +00:00
|
|
|
<main class="page-container">
|
2022-10-14 18:56:56 +00:00
|
|
|
<article class="article">
|
2022-09-28 20:49:59 +00:00
|
|
|
<h1>{{ .Title }}</h1>
|
2022-09-30 12:51:47 +00:00
|
|
|
|
2022-09-29 17:00:28 +00:00
|
|
|
{{ with .Date }}
|
|
|
|
<div>Publié le <b><time>{{ . | time.Format ":date_full" }}</time></b></div>
|
|
|
|
{{ end }}
|
2022-09-30 12:51:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{ if .Params.featured_image }}
|
2022-10-14 18:56:56 +00:00
|
|
|
{{ $featuredImage := .Resources.GetMatch (.Params.featured_image.src | safeURL) }}
|
|
|
|
{{ if $featuredImage }}
|
|
|
|
{{ $featuredImage = $featuredImage.Resize "600x" }}
|
|
|
|
<figure>
|
|
|
|
<img alt="" src="{{ $featuredImage.RelPermalink }}" />
|
|
|
|
{{ with .Params.featured_image.caption }}
|
|
|
|
<figcaption>{{ . }}</figcaption>
|
|
|
|
{{ end }}
|
|
|
|
</figure>
|
|
|
|
{{ end }}
|
2022-09-30 12:51:47 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2022-09-29 17:00:28 +00:00
|
|
|
{{ range .Params.tags }}
|
|
|
|
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
|
|
|
{{ end }}
|
2022-09-28 20:49:59 +00:00
|
|
|
<div>
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</main>
|
|
|
|
{{ end }}
|