gcg-website/layouts/termine/list.html
Denys Konovalov 9728ca4e45
All checks were successful
website-main / prod-build (push) Successful in 1m37s
website-main / test-build (push) Successful in 1m18s
website-main / auto-rebuild (push) Has been skipped
fix terminliste mobile
2023-09-21 08:12:21 +02:00

21 lines
812 B
HTML

{{ define "main" }}
<section class="section">
<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="filtr-container row mx-auto">
{{ range .Params.events }}
<div class="filtr-item col-12" data-category="{{ 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}}">
{{ partial "termin" . }}
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}