{{ $sectionTitle := .Scratch.Get "sectionTitle" }} {{ with (index .Site.Data.landing $sectionTitle) }} {{ if eq .enable true }} {{ with .backgroundImage }} {{ $path := .path | default "images" }} {{ $filename := .filename }} {{ $pathDesktop := printf "%s/%s" $path $filename.desktop }} {{ $pathMobile := printf "%s/%s" $path $filename.mobile }} {{ end }}
{{ with .badge }} {{ .text }} {{ end }}

{{ with .titleLogo }} {{ $path := .path | default "images" }} {{ $filename := .filename }} {{ $height := .height | default "70px" }} {{ $alt := .alt | default "logo image" }} {{ $path := printf "%s/%s" $path $filename }} {{ with $filename }} {{ with $image := resources.Get $path }} {{ if eq .MediaType.SubType "svg" }} {{ .Content | safeHTML }} {{ else }} {{ with .Resize (printf "%dx%d webp q85 drawing Lanczos" .Width .Height) }} {{ $alt }} {{ end }} {{ end }} {{ end }} {{ end }} {{ end }} {{ with .title }}{{ . }}{{ end }}

{{ with .subtitle }}

{{ . | markdownify }}

{{ end }} {{ with .info }}

{{ . | markdownify }}

{{ end }}
{{ with .image }} {{ $path := .path | default "images" }} {{ $filename := .filename }} {{ $alt := .alt | default "hero image" }} {{ $boxShadow := .boxShadow | default false }} {{ $rounded := .rounded | default false }} {{ $path := printf "%s/%s" $path $filename }} {{ with $filename }}
{{ with $image := resources.Get $path }} {{ if eq .MediaType.SubType "svg" }} {{ .Content | safeHTML }} {{ else }} {{ with .Resize (printf "%dx%d webp q85 drawing Lanczos" .Width .Height) }} {{ $alt }} {{ end }} {{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}