Ajout de la table des matières sur les pages et l'accueil.
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
|
|
||||||
|
{{/* 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}}
|
||||||
|
<p>Table des matières :</p>
|
||||||
|
{{ .TableOfContents }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
|
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
|
||||||
|
|||||||
@@ -1,6 +1,13 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ .Title }}</h1>
|
||||||
|
|
||||||
|
{{/* 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}}
|
||||||
|
<p>Table des matières :</p>
|
||||||
|
{{ .TableOfContents }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
|
{{/* vim: set tw=80 ts=2 sw=2 sts=2 ft=gohtmltmpl: */}}
|
||||||
|
|||||||
Reference in New Issue
Block a user