gcg-website/layouts/termine/list.html

21 lines
804 B
HTML
Raw Normal View History

2022-03-19 10:21:45 +01:00
{{ define "main" }}
2023-06-11 21:13:11 +02:00
<section class="section">
2022-03-19 10:21:45 +01:00
<div class="container">
2023-07-30 09:53:00 +02:00
<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">
{{ 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" . }}
2022-03-19 10:21:45 +01:00
</div>
2023-07-30 09:53:00 +02:00
{{ end }}
2022-03-19 10:21:45 +01:00
</div>
</div>
</section>
{{ end }}