{{ define "main" }} {{ with .Params.banner }} {{ $bannerImage := resources.Get (strings.TrimPrefix "/" .image) }}

{{ .content | markdownify }}

{{ .title | markdownify }}

{{ with .button_secondary }} {{ if .enable }} {{ .label }} {{ end }} {{ end }} {{ with .button_primary }} {{ if .enable }} {{ .label }} {{ end }} {{ end }}
{{/* Smooth scroll to company stats section with header offset */}}
{{ end }} {{ with .Params.company_stats }} {{ if .enable }}

{{ .title }}

{{ range .stats }}
{{ .name }}

{{ .count }}

{{ end }}
{{ end }} {{ end }} {{ with .Params.recent_works }} {{ if .enable }}

{{ .title | markdownify }}

{{ .description | markdownify }}

{{ range where (where site.RegularPages "Type" "portfolio") "Params.featured" true }} {{ partial "components/portfolio-card" . }} {{ end }}
{{ end }} {{ end }} {{ with site.GetPage "sections/testimonial" }} {{ if .Params.enable }}

{{ .Title | markdownify }}

{{ .Params.description | markdownify }}

{{ range .Params.testimonials }}
{{ partial "image" (dict "Src" .avatar "Size" "80x80" "Class" "" "Alt" .name) }}

{{ .name }}

{{ .designation | markdownify }}

{{ .content | markdownify }}
{{ end }}
{{ end }} {{ end }} {{ partial "call-to-action" . }} {{ end }}