From b9087baf64f065b40ae19e91f5f7fbc4b4f0a19c Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 25 Mar 2026 21:34:48 +0100 Subject: [PATCH] Correction de la date de publication de la date de l'article. --- layouts/page.html | 7 +++++-- layouts/section.html | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/layouts/page.html b/layouts/page.html index 390b21e..aa1ea43 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -1,8 +1,11 @@ {{ define "main" }}

{{ .Title }}

-

Publié le {{ .PublishDate }} - {{ with or (.Param "author") (.Site.Param "author") }}{{ . }}{{ end }}

+

+ Publié le {{ (or .PublishDate .LastModified) | time.Format ":date_full" }} + à {{ (or .PublishDate .LastModified) | time.Format ":time_short" }} + {{ with or (.Param "author") (.Site.Param "author") }}{{ . }}{{ end }} +

{{ with .ReadingTime }}

Temps de lecture estimé : {{ . }} minute(s).

diff --git a/layouts/section.html b/layouts/section.html index b8d3a82..00321ae 100644 --- a/layouts/section.html +++ b/layouts/section.html @@ -9,8 +9,11 @@

{{ .Title }}

-

Publié le {{ or .PublishDate .LastModified }} - {{ with or (.Param "author") (.Site.Param "author") }}par {{ . }}{{ end }}

+

+ Publié le {{ (or .PublishDate .LastModified) | time.Format ":date_full" }} + à {{ (or .PublishDate .LastModified) | time.Format ":time_short" }} + {{ with or (.Param "author") (.Site.Param "author") }}par {{ . }}{{ end }} +

{{ with .ReadingTime }}

Temps de lecture estimé : {{ . }} minute(s).