From 054fe108ed11a20d23f1e5ae887e311ff32b36f7 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sat, 21 Mar 2026 00:36:40 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20table=20des=20mati=C3=A8res?= =?UTF-8?q?=20sur=20les=20pages=20et=20l'accueil.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/home.html | 7 +++++++ layouts/page.html | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/layouts/home.html b/layouts/home.html index 0a4c552..33e594f 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -1,6 +1,13 @@ {{ define "main" }}

{{ .Title }}

+{{/* 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}} +

Table des matières :

+ {{ .TableOfContents }} +{{ end }} + {{ .Content }} {{ end }} {{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}} diff --git a/layouts/page.html b/layouts/page.html index 0a4c552..33e594f 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -1,6 +1,13 @@ {{ define "main" }}

{{ .Title }}

+{{/* 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}} +

Table des matières :

+ {{ .TableOfContents }} +{{ end }} + {{ .Content }} {{ end }} {{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}