fix: various style and content fixes
All checks were successful
Deploy workflow / deploy (push) Successful in 28s

This commit is contained in:
Matthieu Bessat 2024-03-12 15:18:14 +01:00
parent 609ae6704d
commit fc9627506f
6 changed files with 32 additions and 8 deletions

View file

@ -1,15 +1,22 @@
{{ define "head" }}
{{ with .Params.author }}
<meta name="author" content="{{ .name | default " L'Équipe communication de l'Étoile de Bethléem" }}" />
{{ end }}
{{ end }}
{{ define "main" }}
<main class="page-container read-article">
<article class="article">
<h1>{{ .Title }}</h1>
{{ if .Date }}
<div class="article__date">
Publié le
{{ $date := .Date.Format "2006-01-02" }}
<time date="{{ $date }}">{{ time.Format "2 January 2006" $date }}</time>
<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 }}
</div>
{{ end }}
{{ if .Params.featured_image }}
@ -31,6 +38,12 @@
<div>
{{ .Content }}
</div>
{{ with .Params.author }}
<div class="article__author">
Par {{ .name }}.
</div>
{{ end }}
</article>
</main>
{{ end }}