{{ define "main" }} {{ with .Params.banner }} {{ end }} {{ if .Params.feature.enable }} {{ with .Params.feature }}

{{ .title | markdownify }}

{{ range .feature_item }}

{{ .name | title }}

{{ .content | markdownify }}

{{ end }}
{{ end }} {{ end }} {{ if .Params.service.enable }} {{ with .Params.service }} {{ range $i,$p := .service_item }} {{if modBool $i 2}}

{{ .title | markdownify }}

{{ .content | markdownify }}

{{ if .button.enable }} {{ with .button }} {{ .label }} {{ end }} {{ end }}
{{ if .youtube.enable }} {{ with .youtube }}
{{ end }} {{ else }}
{{ range .images }} {{ end }} {{ end }}
{{ else }}
{{ if .youtube.enable }} {{ with .youtube }}
{{ end }} {{ else }}
{{ range .images }} {{ end }}
{{ end }}

{{ .title | markdownify }}

{{ .content | markdownify }}

{{ if .button.enable }} {{ with .button }} {{ .label }} {{ end }} {{ end }}
{{ end }} {{ end }} {{ end }} {{ end }} {{ if site.Data.homepage.screenshot.enable }} {{ with site.Data.homepage.screenshot }}

{{ .title | markdownify }}

{{ with .image }} {{ end }} {{ if .button.enable }} {{ with .button }}
{{ .label }}
{{ end }} {{ end }}
{{ end }} {{ end }} {{ if .Params.call_to_action.enable }} {{ with .Params.call_to_action }}

{{ .title | markdownify }}

{{with .content }}

{{ . | markdownify }}

{{ end }} {{ if .button.enable }} {{ with .button }} {{ .label }} {{ end }} {{ end }}
{{ end }} {{ end }} {{ end }}