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: */}}