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 }}