gcg-website/layouts/partials/filter-controls.html
Denys Konovalov f377ec7f25
All checks were successful
Website Prod/Test / Produktivumgebung (push) Successful in 11s
Website Prod/Test / Testumgebung (push) Successful in 6s
Umbau Ganztagsbereich (#292)
- [x] Umbau von Bereich zu Hauptseite mit Kacheln
- [x] Aktualisierung für SJ 2025/2026
- [x] Aktualisierung in CMS-Konfiguration inkl. Vorschau

Reviewed-on: #292
2024-09-16 21:34:24 +02:00

20 lines
684 B
HTML

<ul class="list-inline text-center filter-controls mb-4">
{{ $categories := slice }}
{{ if ne (len .Data.Pages) 0 }}
{{ range .Data.Pages }}
{{ $categories = $categories | append .Params.category }}
{{ end }}
{{ else }}
{{ range .Params.tiles }}
{{ with .category }}
{{ $categories = $categories | append . }}
{{ end }}
{{ end }}
{{ end }}
{{ if ne (len $categories) 0 }}
<li class="list-inline-item m-3 text-uppercase active" data-filter="all">Alle</li>
{{ end }}
{{ range ( $categories | uniq ) }}
<li class="list-inline-item m-3 text-uppercase" data-filter="{{ . | urlize }}">{{ . | humanize }}</li>
{{ end }}
</ul>