diff --git a/assets/style/main.scss b/assets/style/main.scss index 0190d5d..fcf9ca4 100644 --- a/assets/style/main.scss +++ b/assets/style/main.scss @@ -127,7 +127,7 @@ header { // Soulignement des titres h1 { font-size: 1em; - color: $fg0; + color: $red; text-transform: uppercase; margin: 0; padding-bottom: 1em; @@ -150,9 +150,9 @@ h1::after { background-image: linear-gradient( to bottom, transparent 35.71%, - $fg0 35.71% 42.85%, + $red 35.71% 42.85%, transparent 42.85% 49.99%, - $fg0 49.99% 57.13%, + $red 49.99% 57.13%, transparent 57.13% ); } @@ -160,7 +160,7 @@ h1::after { h2 { font-size: 1em; text-transform: uppercase; - color: $fg0; + color: $orange; margin: 0; padding-bottom: 1em; position: relative; @@ -182,7 +182,7 @@ h2::after { background-image: linear-gradient( to bottom, transparent 49.99%, - $fg0 49.99% 57.13%, + $orange 49.99% 57.13%, transparent 57.13% ); } @@ -218,7 +218,12 @@ article:not(:last-of-type)::after { // Colorisation des éléments moins importants. #publication-information { padding-left: 4ch; - color: $bg2; + color: $aqua; +} + +#reading-time { + padding-left: 4ch; + color: $blue; } // Décalagu du lien "lire plus". diff --git a/layouts/page.html b/layouts/page.html index b52afe4..390b21e 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -4,6 +4,10 @@
Publié le {{ .PublishDate }} {{ with or (.Param "author") (.Site.Param "author") }}{{ . }}{{ end }}
+ {{ with .ReadingTime }} +Temps de lecture estimé : {{ . }} minute(s).
+ {{ 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 9517a4d..b8d3a82 100644 --- a/layouts/section.html +++ b/layouts/section.html @@ -12,6 +12,10 @@Publié le {{ or .PublishDate .LastModified }} {{ with or (.Param "author") (.Site.Param "author") }}par {{ . }}{{ end }}
+ {{ with .ReadingTime }} +Temps de lecture estimé : {{ . }} minute(s).
+ {{ end }} + {{ .Summary }} {{ if .Truncated }}