2022-03-18 13:35:57 +01:00
|
|
|
{{ define "main" }}
|
|
|
|
|
2023-09-23 22:40:36 +02:00
|
|
|
<main data-pagefind-body>
|
|
|
|
|
2023-06-19 20:30:02 +02:00
|
|
|
{{ $data := .Site.Data }}
|
2022-03-18 13:35:57 +01:00
|
|
|
|
|
|
|
{{ if $data.homepage.slider.enable }}
|
|
|
|
{{ with $data.homepage.slider }}
|
2022-10-24 16:15:18 +02:00
|
|
|
<section class="hero-section overlay bg-cover hero-default" data-background="{{ .bg_image | absURL }}">
|
2022-03-18 13:35:57 +01:00
|
|
|
<div class="container">
|
2023-07-29 13:16:25 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<h2 class="text-white position-relative">{{ $data.homepage.slider.title | markdownify }}</h2>
|
|
|
|
<div class="hero-slider">
|
|
|
|
{{ range .slider_item }}
|
|
|
|
<div class="hero-slider-item">
|
|
|
|
<p class="text-muted mb-4" >{{ .content | markdownify }}</p>
|
|
|
|
{{ if .button.enable }}
|
|
|
|
<a href="{{ .button.link | absURL }}" class="btn btn-primary">{{ .button.label }}</a>
|
2022-03-18 13:35:57 +01:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2023-07-29 13:16:25 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
2022-10-24 16:15:18 +02:00
|
|
|
<noscript>
|
|
|
|
<style>
|
|
|
|
.hero-default {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
</style>
|
2023-06-19 20:30:02 +02:00
|
|
|
<section class="hero-section overlay bg-cover" style="background-image: url('{{ $data.homepage.slider.bg_image | absURL }}');">
|
2022-10-24 16:15:18 +02:00
|
|
|
<div class="container">
|
|
|
|
<div class="hero-slider">
|
|
|
|
<div class="row">
|
2023-04-04 15:28:15 +02:00
|
|
|
<div class="col-md-12">
|
2022-10-24 16:15:18 +02:00
|
|
|
<h1 class="text-white">{{ $data.homepage.slider.title | markdownify }}</h1>
|
2023-04-04 15:28:15 +02:00
|
|
|
{{ range first 1 $data.homepage.slider.slider_item }}
|
|
|
|
<p class="text-muted mb-4">{{ .content | markdownify }}</p>
|
|
|
|
{{ if .button.enable }}
|
2023-06-21 17:58:49 +02:00
|
|
|
<a href="{{ .button.link | absURL }}" class="btn btn-primary">{{ .button.label }}</a>
|
2023-04-04 15:28:15 +02:00
|
|
|
{{ end }}
|
2022-10-24 16:15:18 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</noscript>
|
2022-03-18 13:35:57 +01:00
|
|
|
{{ end }}
|
|
|
|
|
2023-02-01 20:24:20 +01:00
|
|
|
{{ if $data.homepage.header_logos.enable }}
|
|
|
|
{{ with $data.homepage.header_logos }}
|
2022-10-19 15:54:10 +02:00
|
|
|
<section class="bg-white">
|
|
|
|
<div class="container">
|
2023-09-19 09:52:39 +02:00
|
|
|
<div class="row align-items-center justify-content-center">
|
2023-02-07 11:42:16 +01:00
|
|
|
{{ range .logos }}
|
2023-09-20 17:37:03 +02:00
|
|
|
<div class="col-md-3 col-6 mt-4">
|
2023-02-07 11:42:16 +01:00
|
|
|
<a href="{{ .link }}" target="_blank" title="{{ .title }}"><img class="img-fluid w-100" src="{{ .image }}"></a>
|
2022-10-19 15:54:10 +02:00
|
|
|
</div>
|
2023-02-07 11:42:16 +01:00
|
|
|
{{ end }}
|
2022-10-19 15:54:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2023-01-14 17:31:54 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-10-19 15:54:10 +02:00
|
|
|
|
2022-03-18 13:35:57 +01:00
|
|
|
{{ if $data.homepage.about.enable }}
|
|
|
|
{{ with $data.homepage.about }}
|
2023-06-11 21:13:11 +02:00
|
|
|
<section class="section">
|
2022-03-18 13:35:57 +01:00
|
|
|
<div class="container">
|
|
|
|
<div class="row align-items-center">
|
2023-02-01 20:24:20 +01:00
|
|
|
<div class="col-md-10 order-2 order-md-1">
|
2023-06-11 21:13:11 +02:00
|
|
|
<h3 class="mb-4">{{ .title | markdownify }}</h3>
|
2023-07-29 13:16:25 +02:00
|
|
|
<div class="content text-justify">
|
2022-03-18 13:35:57 +01:00
|
|
|
{{ .content | markdownify }}
|
|
|
|
</div>
|
|
|
|
{{ if .button.enable }}
|
|
|
|
{{ with .button }}
|
2023-06-21 17:58:49 +02:00
|
|
|
<a href="{{ .link | absURL }}" class="btn btn-primary">{{ .label }}</a>
|
2022-03-18 13:35:57 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ with .image }}
|
2023-02-01 20:24:20 +01:00
|
|
|
<div class="col-md-2 col-6 order-1 order-md-2 mb-md-0 mx-auto">
|
2023-01-01 17:21:53 +01:00
|
|
|
<img class="img-fluid w-100" src="{{ . | absURL }}">
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
2023-03-05 16:26:55 +01:00
|
|
|
{{ if $data.ausblick.enable }}
|
|
|
|
{{ with $data.ausblick }}
|
2023-04-03 21:45:44 +02:00
|
|
|
{{ partial "modal" . }}
|
2023-03-05 16:26:55 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
2022-12-15 10:42:46 +01:00
|
|
|
{{ if $data.homepage.blog.enable }}
|
2023-06-11 21:13:11 +02:00
|
|
|
<section class="section mb-4">
|
2022-12-15 10:42:46 +01:00
|
|
|
<div class="container">
|
2023-07-30 09:53:00 +02:00
|
|
|
<div class="d-flex align-items-center mb-4 justify-content-between">
|
|
|
|
<h2 class="mb-0 text-nowrap me-3">{{ $data.homepage.blog.title }}</h2>
|
|
|
|
<div class="border-top w-100 border-primary d-none d-sm-block"></div>
|
|
|
|
<div>
|
|
|
|
<a href="{{ `blog` | relURL }}" class="btn btn-sm btn-primary-outline ms-sm-3 d-none d-sm-block">Alle anzeigen</a>
|
2022-12-15 10:42:46 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row justify-content-center">
|
2023-06-19 20:30:02 +02:00
|
|
|
{{ if $data.ausblick.enable }}
|
|
|
|
{{ with $data.ausblick }}
|
2023-04-05 14:16:33 +02:00
|
|
|
<div class="col-lg-4 col-sm-6 mb-4 mb-lg-0 d-flex align-items-stretch">
|
2023-07-30 09:53:00 +02:00
|
|
|
<div class="card border-info rounded-0 hover-shadow mb-2">
|
|
|
|
<span class="position-absolute top-0 start-0 ms-5 translate-middle p-2 text-bg-info border border-info rounded-pill">
|
2023-04-05 14:16:33 +02:00
|
|
|
<i class="mdi mdi-pin me-2">Angeheftet</i>
|
|
|
|
</span>
|
2023-06-19 20:30:02 +02:00
|
|
|
<img class="card-img-top rounded-0" src="{{ .image | relURL }}" alt="{{ .title }}" onclick="$('#{{ md5 .title }}').modal('show');">
|
2023-04-05 14:16:33 +02:00
|
|
|
<div class="card-body d-flex flex-column">
|
2023-07-30 09:53:00 +02:00
|
|
|
<span class="text-truncate mb-2">
|
|
|
|
<i class="mdi mdi-fountain-pen-tip me-2"></i>
|
|
|
|
{{ partial "authors" (dict "Site" $.Site "author" .author )}}
|
|
|
|
</span>
|
2023-06-19 20:30:02 +02:00
|
|
|
<h4 class="card-title text-truncate" onclick="$('#{{ md5 .title }}').modal('show');">{{ .title }}</h4>
|
2023-07-24 12:02:51 +02:00
|
|
|
<p class="card-text" onclick="$('#{{ md5 .title }}').modal('show');">{{ partial "summary" .content }}</p>
|
2023-06-21 17:58:49 +02:00
|
|
|
<button type="button" class="btn btn-primary btn-sm mt-auto align-self-start" onclick="$('#{{ md5 .title }}').modal('show');">Mehr anzeigen</button>
|
2023-03-05 16:26:55 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-19 20:30:02 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
{{ range first (cond $data.ausblick.enable (int $data.homepage.blog.number) (add $data.homepage.blog.number 1)) (where .Site.RegularPages "Type" "post")}}
|
2023-04-05 14:16:33 +02:00
|
|
|
<div class="col-lg-4 col-sm-6 mb-4 mb-lg-0 d-flex align-items-stretch">
|
2023-07-29 13:16:25 +02:00
|
|
|
{{ partial "card-article" . }}
|
2023-04-05 14:16:33 +02:00
|
|
|
</div>
|
2022-12-15 10:42:46 +01:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
|
2022-03-18 13:35:57 +01:00
|
|
|
{{ if $data.homepage.success_banner.enable }}
|
|
|
|
{{ with $data.homepage.success_banner }}
|
|
|
|
<section class="section bg-cover" data-background="{{ .image | absURL }}" id="success">
|
2023-02-01 20:24:20 +01:00
|
|
|
<div class="container">
|
2023-07-30 09:53:00 +02:00
|
|
|
<div class="row feature-blocks bg-white justify-content-between">
|
|
|
|
{{ range .feature_item }}
|
|
|
|
<div class="col-xl-5 mb-xl-5 mb-4">
|
|
|
|
{{ with .image }}
|
|
|
|
<img src="{{ . }}" class="mb-xl-4 mb-lg-3 mb-4 feature-icon"></img>
|
|
|
|
{{ end }}
|
|
|
|
{{ with .icon }}
|
|
|
|
<i class="{{ . }} mb-xl-4 mb-lg-3 mb-4 feature-icon"></i>
|
|
|
|
{{ end }}
|
|
|
|
<h3 class="mb-xl-4 mb-lg-3 mb-4">{{ .name | markdownify }}</h3>
|
|
|
|
<div class="content">
|
|
|
|
{{ .content | markdownify }}
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-07-30 09:53:00 +02:00
|
|
|
{{ end }}
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if $data.homepage.ganztagsangebote.enable }}
|
2023-06-11 21:13:11 +02:00
|
|
|
<section class="section">
|
2022-03-18 13:35:57 +01:00
|
|
|
<div class="container">
|
2023-07-30 09:53:00 +02:00
|
|
|
<div class="d-flex align-items-center mb-4 justify-content-between">
|
|
|
|
<h2 class="mb-0 text-nowrap me-3">{{ $data.homepage.ganztagsangebote.title }}</h2>
|
|
|
|
<div class="border-top w-100 border-primary d-none d-sm-block"></div>
|
|
|
|
<div>
|
|
|
|
<a href="{{ `ganztagsangebote` | relURL }}" class="btn btn-sm btn-primary-outline ms-sm-3 d-none d-sm-block">Alle anzeigen</a>
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row justify-content-center">
|
2023-05-29 16:22:34 +02:00
|
|
|
{{ range first (int $data.homepage.ganztagsangebote.number) (where .Site.RegularPages "Type" "ganztagsangebote" | shuffle)}}
|
2023-02-01 20:24:20 +01:00
|
|
|
<div class="col-lg-4 col-sm-6">
|
2023-07-15 15:50:10 +02:00
|
|
|
{{ partial "ganztag" . }}
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if $data.homepage.cta.enable }}
|
|
|
|
{{ with $data.homepage.cta }}
|
|
|
|
<section class="section bg-primary">
|
2023-07-30 09:53:00 +02:00
|
|
|
<div class="container text-center">
|
|
|
|
<h2 class="text-white mb-0">{{ .title | markdownify }}</h2>
|
|
|
|
<h5 class="mb-4 text-white">{{ .subtitle | markdownify }}</h5>
|
|
|
|
{{ if .button.enable }}
|
|
|
|
{{ with .button }}
|
|
|
|
<a href="{{ .link | absURL }}" class="btn btn-secondary text-uppercase">{{ .label }}</a>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if $data.homepage.info.enable }}
|
|
|
|
{{ partial "info.html" . }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if $data.homepage.termine.enable }}
|
2023-06-11 21:13:11 +02:00
|
|
|
<section class="section bg-body-tertiary">
|
2022-03-18 13:35:57 +01:00
|
|
|
<div class="container">
|
2023-07-30 09:53:00 +02:00
|
|
|
<div class="d-flex align-items-center mb-4 justify-content-between">
|
|
|
|
<h2 class="mb-0 text-nowrap me-3">{{ $data.homepage.termine.title }}</h2>
|
|
|
|
<div class="border-top w-100 border-primary d-none d-sm-block"></div>
|
|
|
|
<div>
|
|
|
|
<a href="{{`termine` | relURL }}" class="btn btn-sm btn-primary-outline ms-sm-3 d-none d-sm-block text-nowrap">Alle anzeigen</a>
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-01 17:21:53 +01:00
|
|
|
<div class="row justify-content-center px-2">
|
2022-06-20 20:56:31 +02:00
|
|
|
|
2022-03-19 10:21:45 +01:00
|
|
|
{{ with .Site.GetPage "/termine/_index.md" }}
|
|
|
|
|
2022-12-25 18:51:35 +01:00
|
|
|
{{ $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 }}
|
|
|
|
|
2023-05-29 16:22:34 +02:00
|
|
|
{{ range first (int $data.homepage.termine.number) $events }}
|
2023-04-05 14:16:33 +02:00
|
|
|
{{ partial "termin" . }}
|
2022-03-18 13:35:57 +01:00
|
|
|
{{ end }}
|
2022-03-19 10:21:45 +01:00
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 text-center">
|
2023-06-21 17:58:49 +02:00
|
|
|
<a href="{{`termine` | relURL }}" class="btn btn-sm btn-primary-outline d-sm-none d-inline-block">Alle anzeigen</a>
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
|
2022-10-17 16:33:03 +02:00
|
|
|
{{ if $data.homepage.digitalpakt.enable }}
|
|
|
|
{{ with $data.homepage.digitalpakt }}
|
|
|
|
<section class="section bg-footer">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row align-items-center">
|
|
|
|
<div class="col-md-7 order-2 order-md-1">
|
2023-06-11 21:13:11 +02:00
|
|
|
<h3 class="mb-4 text-white">{{ .title | markdownify }}</h2>
|
2023-06-09 20:35:28 +02:00
|
|
|
<div class="content text-white text-opacity-50">
|
2022-10-17 16:33:03 +02:00
|
|
|
{{ .content | markdownify }}
|
|
|
|
</div>
|
|
|
|
{{ if .button.enable }}
|
|
|
|
{{ with .button }}
|
2023-06-21 17:58:49 +02:00
|
|
|
<a href="{{ .link | absURL }}" class="btn btn-primary">{{ .label }}</a>
|
2022-10-17 16:33:03 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ with .image }}
|
|
|
|
<div class="col-md-5 order-1 order-md-2 mb-4 mb-md-0">
|
2023-01-01 17:21:53 +01:00
|
|
|
<img class="img-fluid w-100" src="{{ . | absURL }}">
|
2022-10-17 16:33:03 +02:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
2023-01-14 17:31:54 +01:00
|
|
|
{{ if $data.homepage.footer_logos.enable }}
|
|
|
|
{{ with $data.homepage.footer_logos }}
|
2022-10-19 16:09:42 +02:00
|
|
|
<section class="bg-footer">
|
2022-10-18 22:50:46 +02:00
|
|
|
<div class="container">
|
2023-04-05 14:16:33 +02:00
|
|
|
<div class="row justify-content-center">
|
2023-02-07 11:42:16 +01:00
|
|
|
{{ range .logos }}
|
2023-07-30 09:53:00 +02:00
|
|
|
<div class="col-md-2 col-4 mb-4">
|
2023-02-07 11:42:16 +01:00
|
|
|
<a href="{{ .link }}" target="_blank" title="{{ .title }}"><img class="img-fluid w-100" src="{{ .image }}"></a>
|
2022-10-18 22:50:46 +02:00
|
|
|
</div>
|
2023-02-07 11:42:16 +01:00
|
|
|
{{ end }}
|
2022-10-18 22:50:46 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2023-01-14 17:31:54 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-10-18 22:50:46 +02:00
|
|
|
|
2023-09-23 22:40:36 +02:00
|
|
|
</main>
|
|
|
|
|
2022-03-18 13:35:57 +01:00
|
|
|
{{ end }}
|