gcg-website/layouts/termine/list.html
Denys Konovalov 942ef76fc9
Some checks failed
website-main / prod-build (push) Failing after 14s
website-main / test-build (push) Failing after 6s
fix date sorting
2024-03-24 16:11:29 +01:00

22 lines
795 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" }}
<div class="filter-item col-12" data-groups='{{if partial "data/termin-upcoming" .}}upcoming{{else}}past{{end}}'>
{{ partial "termin" . }}
</div>
{{ end }}
<div class="filter-sizer col-1"></div>
</div>
</div>
</section>
{{ end }}