{{ define "main" }} {{ $data := index .Site.Data .Site.Language.Lang }} {{ if $data.homepage.slider.enable }} {{ with $data.homepage.slider }} {{ range .slider_item }} {{ $data.homepage.slider.title | markdownify }} {{ .content | markdownify }} {{ if .button.enable }} {{ .button.label }} {{ end }} {{ end }} {{ end }} {{ range first 1 $data.homepage.slider.slider_item }} {{ $data.homepage.slider.title | markdownify }} {{ .content | markdownify }} {{ if .button.enable }} {{ .button.label }} {{ end }} {{ end }} {{ end }} {{- $files := readDir "/static/media/logos/start" }} {{- range $files -}} {{- $isimg := lower .Name | findRE "\\.(gif|jpg|jpeg|tiff|png|bmp|webp|avif|jxl|svg)" }} {{- if $isimg }} {{- $linkURL := print "/media/logos/start" "/" .Name | absURL }} {{- 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 }} {{ end }} {{ end }} {{ end }} {{ if $data.homepage.blog.enable }} {{ $data.homepage.blog.title }} {{ range first 3 (where .Site.RegularPages "Type" "post")}} {{ .Render "post" }} {{ end }} {{ end }} {{ if $data.homepage.success_banner.enable }} {{ with $data.homepage.success_banner }} {{ range .feature_item }} {{ if .img }} {{ else }} {{ end }} {{ .name | markdownify }} {{ .content | markdownify }} {{ end }} {{ end }} {{ end }} {{ if $data.homepage.ganztagsangebote.enable }} {{ $data.homepage.ganztagsangebote.title }} {{ i18n "see_all" }} {{ range first 6 (where .Site.RegularPages "Type" "ganztagsangebote")}} {{ .Render "ganztagsangebote" }} {{ end }} {{ i18n "see_all" }} {{ end }} {{ if $data.homepage.cta.enable }} {{ with $data.homepage.cta }} {{ .title | markdownify }} {{ .subtitle | markdownify }} {{ if .button.enable }} {{ with .button }} {{ .label }} {{ end }} {{ end }} {{ end }} {{ end }} {{ if $data.homepage.info.enable }} {{ partial "info.html" . }} {{ end }} {{ if $data.homepage.termine.enable }} {{ $data.homepage.termine.title }} {{ i18n "all_events" }} {{ with .Site.GetPage "/termine/_index.md" }} {{ $events := slice }} {{ range .Params.events }} {{ if or (ge (.date | time.AsTime).Unix now.Unix) (and .enddate (ge (.enddate | time.AsTime).Unix now.Unix)) }} {{ $events = $events | append . }} {{ end }} {{ end }} {{ range first 3 $events }} {{ time.Format "2" .date}} {{ time.Format "Jan 2006" .date}} {{ with .enddate }} bis {{ time.Format "2 Jan 2006" . }} {{end}} {{ .title }} {{ .summary | truncate 100 }} {{ .location | markdownify }} {{ end }} {{ end }} {{ i18n "see_all" }} {{ end }} {{ if $data.homepage.digitalpakt.enable }} {{ with $data.homepage.digitalpakt }} {{ .title | markdownify }} {{ .content | markdownify }} {{ if .button.enable }} {{ with .button }} {{ .label }} {{ end }} {{ end }} {{ with .image }} {{ end }} {{ end }} {{ end }} {{- $files := readDir "/static/media/logos" }} {{- range $files -}} {{- $isimg := lower .Name | findRE "\\.(gif|jpg|jpeg|tiff|png|bmp|webp|avif|jxl|svg)" }} {{- if $isimg }} {{- $linkURL := print "/media/logos" "/" .Name | absURL }} {{- end }} {{- end }} {{ end }}
{{ .content | markdownify }}
{{ .title }}
{{ .summary | truncate 100 }}
{{ .location | markdownify }}