2024-03-12 14:18:14 +00:00
|
|
|
{{ define "head" }}
|
|
|
|
{{ with .Params.author }}
|
|
|
|
<meta name="author" content="{{ .name | default " L'Équipe communication de l'Étoile de Bethléem" }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-09-30 12:51:47 +00:00
|
|
|
{{ define "main" }}
|
2024-03-10 16:33:41 +00:00
|
|
|
<main class="page-container read-article">
|
2022-09-30 12:51:47 +00:00
|
|
|
<article class="article">
|
|
|
|
<h1>{{ .Title }}</h1>
|
|
|
|
|
2024-03-12 14:18:14 +00:00
|
|
|
<div class="article__meta">
|
|
|
|
{{ with .Date }}
|
|
|
|
<div class="article__date">
|
|
|
|
Publié le
|
|
|
|
{{ $date := .Format "2006-01-02" }}
|
|
|
|
<time date="{{ $date }}">{{ time.Format "2 January 2006" $date }}</time>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-09-30 12:51:47 +00:00
|
|
|
</div>
|
|
|
|
|
2024-09-15 16:26:10 +00:00
|
|
|
{{ if and .Params.featured_image (not .Params.cover_image) }}
|
2022-10-14 18:56:56 +00:00
|
|
|
{{ $featuredImage := .Resources.GetMatch (.Params.featured_image.src | safeURL) }}
|
|
|
|
{{ if $featuredImage }}
|
2024-03-10 16:33:41 +00:00
|
|
|
{{ $featuredImage = $featuredImage.Resize "900x" }}
|
2024-05-07 16:17:24 +00:00
|
|
|
<div class="single-figure-container article__featured-image-container">
|
|
|
|
<figure class="article__featured-image fig-img">
|
2022-10-14 18:56:56 +00:00
|
|
|
<img alt="" src="{{ $featuredImage.RelPermalink }}" />
|
|
|
|
{{ with .Params.featured_image.caption }}
|
|
|
|
<figcaption>{{ . }}</figcaption>
|
|
|
|
{{ end }}
|
|
|
|
</figure>
|
2024-05-07 16:17:24 +00:00
|
|
|
</div>
|
2022-10-14 18:56:56 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-09-30 12:51:47 +00:00
|
|
|
|
2024-09-15 16:26:10 +00:00
|
|
|
{{ if .Params.cover_image }}
|
|
|
|
{{ $img := .Resources.GetMatch (.Params.cover_image.src | safeURL) }}
|
|
|
|
{{ if $img }}
|
|
|
|
{{ $img = $img.Resize "900x" }}
|
|
|
|
<div class="single-figure-container article__featured-image-container">
|
|
|
|
<figure class="article__featured-image fig-img">
|
|
|
|
<img alt="" src="{{ $img.RelPermalink }}" />
|
|
|
|
{{ with .Params.cover_image.caption }}
|
|
|
|
<figcaption>{{ . }}</figcaption>
|
|
|
|
{{ end }}
|
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
2022-09-30 12:51:47 +00:00
|
|
|
{{ range .Params.tags }}
|
|
|
|
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
|
|
|
{{ end }}
|
|
|
|
<div>
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
2024-03-12 14:18:14 +00:00
|
|
|
|
|
|
|
{{ with .Params.author }}
|
|
|
|
<div class="article__author">
|
|
|
|
Par {{ .name }}.
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
2022-09-30 12:51:47 +00:00
|
|
|
</article>
|
|
|
|
</main>
|
|
|
|
{{ end }}
|