Sync dev with master
All checks were successful
Website Dev / dev-build (push) Successful in 19s

This commit is contained in:
2024-07-05 21:55:28 +02:00
369 changed files with 1421 additions and 408 deletions

View File

@ -5,7 +5,7 @@
<div class="row">
<div class="col-lg-8">
<div class="row">
{{ $paginator := .Paginate ( where .Data.Pages "Type" "post") }}
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $paginator.Pages }}
<div class="col-md-6 d-flex align-items-stretch">
{{ partial "card-article" . }}

View File

@ -8,7 +8,7 @@
{{ if eq $.Data.Plural "tags" }}
<a href="{{ `tags/` | relURL }}{{ $name | urlize | lower }}">{{ $name }}</a>
{{ else if eq $.Data.Plural "categories" }}
<a href="{{ `categories/` | relURL }}{{ $name | urlize | lower }}">{{ if (index $transliterations $name) }}{{ index $transliterations $name }}{{ else }}{{ $name | title }}{{end}}</a>
<a href="{{ `categories/` | relURL }}{{ $name | urlize | lower }}">{{ with (index $transliterations $name) }}{{ . }}{{ else }}{{ $name | title }}{{end}}</a>
{{ end }}
{{ end }}
</div>

View File

@ -14,7 +14,7 @@
{{ .Content }}
<hr>
{{ with .Params.email }}
<a href="mailto:{{ . }}">{{ partial "icons/icon" (dict "vendor" "mdi" "name" "at") }}</a>
<a href="mailto:{{ . }}">{{ partial "icons/icon" (dict "vendor" "mdi" "name" "at") }}</a>
{{ end }}
</div>
</div>

View File

@ -6,7 +6,7 @@
<div class="container">
<h2 class="mb-4">Weitere Begabtenförderungsangebote</h2>
<div class="row" data-pagefind-ignore="all">
{{ range partial "related" . }}
{{ range partial "data/related" . }}
{{ partial "card-btn" . }}
{{ end }}
</div>

View File

@ -22,7 +22,7 @@
<div class="container">
<h2 class="mb-4">Andere Arbeitsgemeinschaften</h2>
<div class="row">
{{ range partial "related" . }}
{{ range partial "data/related" . }}
<div class="col-lg-4 col-sm-6">
{{ partial "ganztag" . }}
</div>

View File

@ -224,8 +224,8 @@
{{ 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)) }}
{{ range sort .Params.events ".date" }}
{{ if partial "data/termin-upcoming" . }}
{{ $events = $events | append . }}
{{ end }}
{{ end }}

View File

@ -0,0 +1 @@
{{ return ((where .Site.RegularPages "Type" .Type) | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3) }}

View File

@ -0,0 +1 @@
{{ return or (ge (.date | time.AsTime) now) (and .enddate (ge (.enddate | time.AsTime) now)) }}

View File

@ -86,7 +86,7 @@
{{ $top_banner := .Site.Data.homepage.top_banner }}
{{ if and $top_banner.enable }}
{{ if or (not $top_banner.temporarily.enable) (and $top_banner.temporarily.enable (and (le ($top_banner.temporarily.start_date | time.AsTime).Unix now.Unix ) (ge ($top_banner.temporarily.end_date | time.AsTime).Unix now.Unix))) }}
{{ if or (not $top_banner.temporarily.enable) (and $top_banner.temporarily.enable (and (le ($top_banner.temporarily.start_date | time.AsTime) now) (ge ($top_banner.temporarily.end_date | time.AsTime) now))) }}
{{ with $top_banner }}
<div id="top-banner" class="p-3" style="background: {{ .color }}" data-pagefind-ignore>
<div class="container">

View File

@ -1,2 +0,0 @@
{{ $related := (where .Site.RegularPages "Type" .Type) | intersect (where .Site.Pages ".Title" "!=" .Title) | union (.Site.RegularPages.Related . ) | shuffle | first 3 }}
{{ return $related }}

View File

@ -8,8 +8,8 @@
<li class="list-inline-item m-3 text-uppercase" data-filter="past">Vergangen</li>
</ul>
<div class="filter-container row mx-auto">
{{ range .Params.events }}
<div class="filter-item col-12" data-groups="{{ if or (ge (.date | time.AsTime).Unix now.Unix) (and .enddate (ge (.enddate | time.AsTime).Unix now.Unix)) }}upcoming{{else}}past{{end}}" data-time="{{.date}}">
{{ range sort .Params.events ".date" }}
<div class="filter-item col-12" data-groups='{{if partial "data/termin-upcoming" .}}upcoming{{else}}past{{end}}'>
{{ partial "termin" . }}
</div>
{{ end }}

View File

@ -6,7 +6,7 @@
<div class="container">
<h2 class="mb-4">Weitere Wettbewerbe</h2>
<div class="row" data-pagefind-ignore="all">
{{ range partial "related" . }}
{{ range partial "data/related" . }}
<div class="col-lg-4 col-sm-6">
{{ partial "card-category" . }}
</div>