Correction de la date de publication de la date de l'article.

This commit is contained in:
2026-03-25 21:41:47 +01:00
parent 6f465bde42
commit b9087baf64
2 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -1,8 +1,11 @@
{{ define "main" }} {{ define "main" }}
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<p id="publication-information">Publié le {{ .PublishDate }} <p id="publication-information">
{{ with or (.Param "author") (.Site.Param "author") }}{{ . }}{{ end }}</p> Publié le {{ (or .PublishDate .LastModified) | time.Format ":date_full" }}
à {{ (or .PublishDate .LastModified) | time.Format ":time_short" }}
{{ with or (.Param "author") (.Site.Param "author") }}{{ . }}{{ end }}
</p>
{{ with .ReadingTime }} {{ with .ReadingTime }}
<p id="reading-time">Temps de lecture estimé : {{ . }} minute(s).</p> <p id="reading-time">Temps de lecture estimé : {{ . }} minute(s).</p>
+5 -2
View File
@@ -9,8 +9,11 @@
<article> <article>
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2> <h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<p id="publication-information">Publié le {{ or .PublishDate .LastModified }} <p id="publication-information">
{{ with or (.Param "author") (.Site.Param "author") }}par {{ . }}{{ end }}</p> 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 }}
</p>
{{ with .ReadingTime }} {{ with .ReadingTime }}
<p id="reading-time">Temps de lecture estimé : {{ . }} minute(s).</p> <p id="reading-time">Temps de lecture estimé : {{ . }} minute(s).</p>