gcg-website/layouts/termine/list.html
Denys Konovalov 3eaf98528a
All checks were successful
Website Prod/Test / Produktivumgebung (push) Successful in 15s
Website Prod/Test / Testumgebung (push) Successful in 9s
add hidden switch to termine
2024-08-16 20:51:08 +02:00

24 lines
838 B
HTML

{{ define "main" }}
<section class="section" data-pagefind-body>
<div class="container">
<ul class="list-inline text-center filter-controls mb-4">
<li class="list-inline-item m-3 text-uppercase active" data-filter="all">Alle</li>
<li class="list-inline-item m-3 text-uppercase" data-filter="upcoming">Anstehend</li>
<li class="list-inline-item m-3 text-uppercase" data-filter="past">Vergangen</li>
</ul>
<div class="filter-container row mx-auto">
{{ range sort .Params.events ".date" }}
{{ if not .hidden }}
<div class="filter-item col-12" data-groups='{{if partial "data/termin-upcoming" .}}upcoming{{else}}past{{end}}'>
{{ partial "termin" . }}
</div>
{{ end }}
{{ end }}
<div class="filter-sizer col-1"></div>
</div>
</div>
</section>
{{ end }}