From 036c11ef5cf64f9c0b904f3e24db9c1107a3ad60 Mon Sep 17 00:00:00 2001 From: Matthieu Bessat Date: Fri, 15 Mar 2024 11:14:50 +0100 Subject: [PATCH] feat(images): display date + add date to an image --- content/images/18/index.md | 2 ++ layouts/images/single.html | 13 ++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/content/images/18/index.md b/content/images/18/index.md index eacd2d3..8e3226d 100644 --- a/content/images/18/index.md +++ b/content/images/18/index.md @@ -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 diff --git a/layouts/images/single.html b/layouts/images/single.html index c8f5b53..eabf82e 100644 --- a/layouts/images/single.html +++ b/layouts/images/single.html @@ -24,8 +24,8 @@
{{ . }}
{{ end }} +
- {{ 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 }}
+
+ {{ with .Params.author }} + Auteur : {{ . }} + {{ else }} + Pas encore de d'auteur ajouté + {{ end }} +
- {{ .Content }} + {{ .Content }}