{{ define "main" }}
{{ if (and .IsPage (eq .FirstSection.Section "posts"))}} {{ with .CurrentSection }} {{ if .Params.Title }}
{{ else }}
{{ end }} {{ end }} {{ else }}
{{ end }}
{{ with .Params.imgExplanation }}
{{ . }}
{{ end }} {{ with .Params.summary }}
{{ . }}
{{ end }} {{ if (and (not .Params.notoc) (gt .WordCount 600)) }}
Sommaire
{{ .TableOfContents | replaceRE "
{{ end }} {{ .Content }}
{{ end }}