From 9c3e2cb0454f00c94cc61bc3ec6a45f9dd7340e2 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Tue, 24 Mar 2026 22:57:27 +0100 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20de=20l'affichage=20d'inform?= =?UTF-8?q?ations=20annexes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/style/main.scss | 11 +++++++++++ layouts/page.html | 3 +++ layouts/section.html | 5 ++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/assets/style/main.scss b/assets/style/main.scss index 4962373..4c46133 100644 --- a/assets/style/main.scss +++ b/assets/style/main.scss @@ -215,6 +215,17 @@ article:not(:last-of-type)::after { ); } +// Colorisation des éléments moins importants. +#publication-information { + padding-left: 4ch; + color: $bg2; +} + +// Décalagu du lien "lire plus". +#read-more { + padding-left: 4ch; +} + // Séparation du pied de page footer { margin: 0; diff --git a/layouts/page.html b/layouts/page.html index 33e594f..b52afe4 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -1,6 +1,9 @@ {{ define "main" }}

{{ .Title }}

+

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

+ {{/* Pourquoi 32, bah pourquoi pas ? */}} {{/* Non, en vrai ça semble être le taille d'une table des matières vide.*/}} {{ if gt (len .TableOfContents) 32}} diff --git a/layouts/section.html b/layouts/section.html index 5beff0d..9517a4d 100644 --- a/layouts/section.html +++ b/layouts/section.html @@ -9,10 +9,13 @@

{{ .Title }}

+

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

+ {{ .Summary }} {{ if .Truncated }} - Lire plus sur « {{ .Title }} » +

Lire plus sur « {{ .Title }} »

{{ end }}
{{ end }}