{{ $sectionTitle := .Scratch.Get "sectionTitle" }} {{ with (index .Site.Data.landing $sectionTitle) }} {{ if eq .enable true }}
{{ with .title }}

{{ . }}

{{ end }} {{ with .subtitle }}

{{ . | markdownify }}

{{ end }}
{{ range $index, $value := .items }}
{{ $title := .title }} {{ $path := .imagePath | default "images" }} {{ $imageBefore := .imageBefore }} {{ $imageAfter := .imageAfter }} {{ $pathBefore := printf "%s/%s" $path $imageBefore }} {{ $pathAfter := printf "%s/%s" $path $imageAfter }} {{ with and $imageBefore $imageAfter }}
{{ with $imageBefore := resources.Get $pathBefore }} {{ $imageBefore }} {{ end }} {{ with $imageAfter := resources.Get $pathAfter }} {{ $imageAfter }} {{ end }}
{{ end }}
{{ end }}
{{ end }} {{ end }}