From 4c8b68aea0daa8631ec45eedf3d324dfa5a99680 Mon Sep 17 00:00:00 2001 From: Richard Dern Date: Tue, 9 Dec 2025 11:43:25 +0100 Subject: [PATCH] =?UTF-8?q?Premi=C3=A8re=20int=C3=A9gration=20de=20mes=20l?= =?UTF-8?q?ivres=20aux=20articles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/42/layouts/_partials/oeuvres.html | 13 ++++++++++++ .../_partials/oeuvres/l-anankeisme.html | 17 ++++++++++++++++ .../l-humain-cette-espece-primitive.html | 20 +++++++++++++++++++ themes/42/layouts/page.html | 14 +++++++------ 4 files changed, 58 insertions(+), 6 deletions(-) create mode 100644 themes/42/layouts/_partials/oeuvres.html create mode 100644 themes/42/layouts/_partials/oeuvres/l-anankeisme.html create mode 100644 themes/42/layouts/_partials/oeuvres/l-humain-cette-espece-primitive.html diff --git a/themes/42/layouts/_partials/oeuvres.html b/themes/42/layouts/_partials/oeuvres.html new file mode 100644 index 00000000..8ae6cd9a --- /dev/null +++ b/themes/42/layouts/_partials/oeuvres.html @@ -0,0 +1,13 @@ +{{/* Affiche les blocs d'œuvres en fonction de .Params.oeuvres */}} +{{- $page := . -}} +{{- with $page.Params.oeuvres }} + {{- range . }} + {{- $oeuvre := . }} + {{- if eq $oeuvre "L'Anankéisme" }} + {{- partial "oeuvres/l-anankeisme.html" $page }} + {{- else if eq $oeuvre "L'Humain, cette espèce primitive" }} + {{- partial "oeuvres/l-humain-cette-espece-primitive.html" $page }} + {{- end }} + {{- end }} +{{- end }} + diff --git a/themes/42/layouts/_partials/oeuvres/l-anankeisme.html b/themes/42/layouts/_partials/oeuvres/l-anankeisme.html new file mode 100644 index 00000000..aa4cec17 --- /dev/null +++ b/themes/42/layouts/_partials/oeuvres/l-anankeisme.html @@ -0,0 +1,17 @@ +{{/* Bloc de présentation pour l'ouvrage "L'Anankéisme" */}} + + diff --git a/themes/42/layouts/_partials/oeuvres/l-humain-cette-espece-primitive.html b/themes/42/layouts/_partials/oeuvres/l-humain-cette-espece-primitive.html new file mode 100644 index 00000000..bd093b8c --- /dev/null +++ b/themes/42/layouts/_partials/oeuvres/l-humain-cette-espece-primitive.html @@ -0,0 +1,20 @@ +{{/* Bloc de présentation pour l'ouvrage "L'Humain, cette espèce primitive" */}} + + diff --git a/themes/42/layouts/page.html b/themes/42/layouts/page.html index e6e3b148..feaabd52 100644 --- a/themes/42/layouts/page.html +++ b/themes/42/layouts/page.html @@ -15,12 +15,12 @@ {{ with .TableOfContents }} {{ if gt (len (plainify .)) 0 }} -
- - Sommaire - +
+ + Sommaire + {{ . | safeHTML }} -
+
{{ end }} {{ end }} @@ -36,6 +36,8 @@ {{- partial "asides/keywords.html" . }} + {{ partial "oeuvres.html" . }} + {{ if .Params.weather }}