feat(images): display date + add date to an image

This commit is contained in:
Matthieu Bessat 2024-03-15 11:14:50 +01:00
parent 0d130debc9
commit 036c11ef5c
2 changed files with 12 additions and 3 deletions

View file

@ -2,6 +2,8 @@
title: Dessin de l'entrée de la crypte
original_name: Bethleem-pot-crypte.jpg
mime_type: image/jpeg
author: Alphonse-Georges Poulain
inception: 1958
imtags:
- crypte
- entrée-crypte

View file

@ -24,8 +24,8 @@
<pre>{{ . }}</pre>
</div>
{{ end }}
<div class="single-image__property single-image__date">
{{ with .Params.inception }}
{{/*
{{ $dateType := "exact" }}
@ -46,13 +46,20 @@
{{ partial "FormatHistoricalDate.html" . }}
{{ end }}
*/}}
Date du document : {{ partial "FormatHistoricalDate.html" . }}
Date : {{ partial "FormatHistoricalDate.html" . }}
{{ else }}
Pas encore de de date ajouté
{{ end }}
</div>
<div class="single-image__property single-image__author">
{{ with .Params.author }}
Auteur : {{ . }}
{{ else }}
Pas encore de d'auteur ajouté
{{ end }}
</div>
<div class="single-image__content">
{{ .Content }}
{{ .Content }}
</div>
</div>
<div class="single-image__image-container">