{{ define "main" }} {{ if site.Data.homepage.banner.enable }} {{ with site.Data.homepage.banner }}

{{ .title | markdownify }}

{{ .content | markdownify }}

{{ if .button.enable }} {{ with .button }} {{ .label }} {{ end }} {{ end }} {{ if .video.enable }} {{ with .video }} Watch Video {{ end }} {{ end }}
{{ partial "image.html" (dict "Src" .image "Alt" "image" "Class" "img-fluid") }}
{{ end }} {{ end }} {{ if site.Data.homepage.about.enable }} {{ with site.Data.homepage.about }}
{{ partial "image.html" (dict "Src" .image "Alt" "image" "Class" "img-fluid") }}

{{ .title | markdownify }}

{{ .content | markdownify }}

{{ end }} {{ end }} {{ if site.Data.homepage.cta.enable }} {{ partial "cta.html" . }} {{ end }} {{ if site.Data.homepage.material.enable }} {{ with site.Data.homepage.material }}

{{ .title | markdownify }}

{{ .subtitle | markdownify }}

{{ range .materialItem }}
{{ partial "image.html" (dict "Src" .image "Alt" "material" "Class" "card-img-top border-0") }}

{{ .title | markdownify }}

{{ .content | markdownify }}

{{ end }}
{{ end }} {{ end }} {{ if site.Data.homepage.advantage.enable }} {{ with site.Data.homepage.advantage }}

{{ .title | markdownify }}

{{ .subtitle | markdownify }}

    {{ range .advantageList }}
  • {{ .listItem }}
  • {{ end }}
{{ partial "image.html" (dict "Src" .image "Alt" "image" "Class" "img-fluid") }}
{{ end }} {{ end }} {{ if site.Data.homepage.video.enable }} {{ with site.Data.homepage.video }}
{{ partial "image.html" (dict "Src" .videoThumb "Alt" "video thumb" "Class" "img-fluid rounded") }}

{{ .title | markdownify }}

{{ .content | markdownify }}

{{ end }} {{ end }} {{ if site.Data.homepage.products.enable }}
{{ with site.Data.homepage.products }}

{{ .title | markdownify }}

{{ end }}
{{ range first 6 (where site.RegularPages "Type" "products") }}
{{ range first 1 .Params.Images }} {{ partial "image.html" (dict "Src" .image "Alt" .Title "Class" "card-img-top") }} {{ end }}
{{ .Title }}

{{ .Params.Description }}

{{ if .Params.PriceBefore }} {{ site.Params.currencySymbol }}{{ .Params.PriceBefore }} {{ end }} {{ site.Params.currencySymbol }}{{ .Params.Price }}
{{ end }}
{{ end }} {{ if site.Data.homepage.testimonial.enable }} {{ with site.Data.homepage.testimonial }}

{{ .title | markdownify }}

{{ range .testimonialItem }}
{{ partial "image.html" (dict "Src" .image "Alt" .name "Class" "client-img") }}

{{ .content | markdownify }}

{{ .name | markdownify }}
{{ .designation | markdownify }}
{{ end }}
{{ end }} {{ end }} {{ if site.Data.homepage.cta.enable }} {{ partial "cta.html" . }} {{ end }} {{ end }}