{{ define "bodyclass" }}page-openbureau{{ end }} {{ define "main" }} {{ $rapport := .Site.GetPage "/ob/rapport" }} {{ $dossier := .Site.GetPage "/ob/dossier" }}
$ ls
{{ $total := 1 }}{{ if $rapport }}{{ $total = add $total 1 }}{{ end }}{{ if $dossier }}{{ $total = add $total 1 }}{{ end }}total {{ $total }}