Couleurs et temps de lecture.

This commit is contained in:
2026-03-25 01:43:05 +01:00
parent 05020c17b4
commit d80cc6e070
3 changed files with 19 additions and 6 deletions
+11 -6
View File
@@ -127,7 +127,7 @@ header {
// Soulignement des titres // Soulignement des titres
h1 { h1 {
font-size: 1em; font-size: 1em;
color: $fg0; color: $red;
text-transform: uppercase; text-transform: uppercase;
margin: 0; margin: 0;
padding-bottom: 1em; padding-bottom: 1em;
@@ -150,9 +150,9 @@ h1::after {
background-image: linear-gradient( background-image: linear-gradient(
to bottom, to bottom,
transparent 35.71%, transparent 35.71%,
$fg0 35.71% 42.85%, $red 35.71% 42.85%,
transparent 42.85% 49.99%, transparent 42.85% 49.99%,
$fg0 49.99% 57.13%, $red 49.99% 57.13%,
transparent 57.13% transparent 57.13%
); );
} }
@@ -160,7 +160,7 @@ h1::after {
h2 { h2 {
font-size: 1em; font-size: 1em;
text-transform: uppercase; text-transform: uppercase;
color: $fg0; color: $orange;
margin: 0; margin: 0;
padding-bottom: 1em; padding-bottom: 1em;
position: relative; position: relative;
@@ -182,7 +182,7 @@ h2::after {
background-image: linear-gradient( background-image: linear-gradient(
to bottom, to bottom,
transparent 49.99%, transparent 49.99%,
$fg0 49.99% 57.13%, $orange 49.99% 57.13%,
transparent 57.13% transparent 57.13%
); );
} }
@@ -218,7 +218,12 @@ article:not(:last-of-type)::after {
// Colorisation des éléments moins importants. // Colorisation des éléments moins importants.
#publication-information { #publication-information {
padding-left: 4ch; padding-left: 4ch;
color: $bg2; color: $aqua;
}
#reading-time {
padding-left: 4ch;
color: $blue;
} }
// Décalagu du lien "lire plus". // Décalagu du lien "lire plus".
+4
View File
@@ -4,6 +4,10 @@
<p id="publication-information">Publié le {{ .PublishDate }} <p id="publication-information">Publié le {{ .PublishDate }}
{{ with or (.Param "author") (.Site.Param "author") }}{{ . }}{{ end }}</p> {{ with or (.Param "author") (.Site.Param "author") }}{{ . }}{{ end }}</p>
{{ with .ReadingTime }}
<p id="reading-time">Temps de lecture estimé : {{ . }} minute(s).</p>
{{ end }}
{{/* Pourquoi 32, bah pourquoi pas ? */}} {{/* Pourquoi 32, bah pourquoi pas ? */}}
{{/* Non, en vrai ça semble être le taille d'une table des matières vide.*/}} {{/* Non, en vrai ça semble être le taille d'une table des matières vide.*/}}
{{ if gt (len .TableOfContents) 32}} {{ if gt (len .TableOfContents) 32}}
+4
View File
@@ -12,6 +12,10 @@
<p id="publication-information">Publié le {{ or .PublishDate .LastModified }} <p id="publication-information">Publié le {{ or .PublishDate .LastModified }}
{{ with or (.Param "author") (.Site.Param "author") }}par {{ . }}{{ end }}</p> {{ with or (.Param "author") (.Site.Param "author") }}par {{ . }}{{ end }}</p>
{{ with .ReadingTime }}
<p id="reading-time">Temps de lecture estimé : {{ . }} minute(s).</p>
{{ end }}
{{ .Summary }} {{ .Summary }}
{{ if .Truncated }} {{ if .Truncated }}