{{ define "main" }}

{{ .Title }}

{{ if isset .Params "categories" }} {{ $catlen := (len .Params.categories) }} {{ if (gt $catlen 0) }} {{ if (gt $catlen 1) }} Dans les catégories {{ else }} Dans la catégorie {{ end }} {{ range $index, $element := .Params.categories }} {{ $element }} {{ if (not (eq (add $index 1) $catlen)) }} , {{ end }} {{ end }} {{ end }}   -   {{ end }} {{ if isset .Params "tags" }} {{ $taglen := (len .Params.tags) }} {{ if (gt $taglen 0) }} {{ if (gt $taglen 1) }} Avec les tags {{ else }} Avec le tag {{ end }} {{ range $index, $element := .Params.tags }} {{ $element }} {{ if (not (eq (add $index 1) $taglen)) }} , {{ end }} {{ end }} {{ end }}   -   {{ end }} {{ if isset .Params "authors" }} Fait par {{ $len := (len .Params.authors) }} {{ range $index, $element := .Params.authors }} {{ $element }} {{ if (not (eq (add $index 1) $len)) }} et {{ end }} {{ end }}   -   {{ end }}
{{ .Content }}
{{ end }}