{{ define "main" }} {{ $data := index .Site.Data .Site.Language.Lang }} {{ if $data.homepage.slider.enable }} {{ with $data.homepage.slider }}
{{ range .slider_item }}

{{ .title | markdownify }}

{{ .content | markdownify }}

{{ if .button.enable }} {{ .button.label }} {{ end }}
{{ end }}
{{ end }} {{ end }} {{ if $data.homepage.banner_feature.enable }} {{ with $data.homepage.banner_feature }}
banner-feature
{{ range .feature_item }}

{{ .name | markdownify }}

{{ .content | markdownify }}

{{ end }}
{{ end }} {{ end }} {{ if $data.homepage.about.enable }} {{ with $data.homepage.about }}

{{ .title | markdownify }}

{{ .content | markdownify }}

{{ if .button.enable }} {{ with .button }} {{ .label }} {{ end }} {{ end }}
{{ with .image }}
about image
{{ end }}
{{ end }} {{ end }} {{ if $data.homepage.ganztagsangebote.enable }}

{{ $data.homepage.ganztagsangebote.title }}

{{ range first 6 (where .Site.RegularPages "Type" "ganztagsangebote")}}
{{ .Render "ganztagsangebote" }}
{{ end }}
{{ end }} {{ if $data.homepage.cta.enable }} {{ with $data.homepage.cta }}
{{ .subtitle | markdownify }}

{{ .title | markdownify }}

{{ if .button.enable }} {{ with .button }} {{ .label }} {{ end }} {{ end }}
{{ end }} {{ end }} {{ if $data.homepage.success_story.enable }} {{ partial "success-story.html" . }} {{ end }} {{ if $data.homepage.event.enable }}

{{ $data.homepage.event.title }}

{{ range first 3 (where .Site.RegularPages "Type" "event")}}
{{ .Render "event" }}
{{ end }}
{{ end }} {{ if $data.homepage.blog.enable }}

{{ $data.homepage.blog.title }}

{{ range first 3 (where .Site.RegularPages "Type" "post")}}
{{ .Render "post" }}
{{ end }}
{{ end }} {{ end }}