{{ $carImagePath := .Params.contentImage | default "images/visuels/covoiturage.svg" }}
{{ $carImage := resources.Get $carImagePath }}
{{ if $carImage }}
{{ end }}
{{ .Content }}
{{ $allResources := .Resources.Match "*.md" }}
{{ $etapes := where $allResources "Params.type" "!=" "page-footer" }}
{{ $arrowGreen := resources.Get "images/picto/Picto - Conducteur solidaire - Fleche verte.svg" }}
{{ $arrowOrange := resources.Get "images/picto/Picto - Conducteur solidaire - Fleche orange.svg" }}
{{ if $etapes }}
{{ .Params.etapesTitle | default "Une démarche simple et pratique" }}
{{ $sortedEtapes := sort $etapes "Params.weight" }}
{{ $total := len $sortedEtapes }}
{{ range $index, $etape := $sortedEtapes }}
{{ if $etape.Params.icon }}
{{ $icon := resources.Get $etape.Params.icon }}
{{ if $icon }}
{{ end }}
{{ end }}
{{ $etape.Title }}
{{ $etape.Content }}
{{ if lt (add $index 1) $total }}
{{ if eq (mod $index 2) 0 }}
{{ else }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}