merge fixes from Cristoph, working filter, calendar view

This commit is contained in:
rra
2022-09-28 14:11:14 +02:00
parent ce945e77db
commit 0e2f6a71a1
19 changed files with 414 additions and 193 deletions

View File

@ -0,0 +1,29 @@
{{ define "main" }}
<main>
<section class='entries'>
{{ $now := (now.Format "060102" ) }}
<div class="upcoming event-list">
<div class='tape-label'><span>upcoming events</span></div>
{{ range .Pages }}
{{ $t := (substr .Params.event_end 2 8) }}
{{ $time := ( replace $t "-" "") }}
{{ if ge $time $now }}
{{- partial "event_list_item.html" . -}}
{{ end }}
{{ end }}
</div>
<div class="past event-list">
<div class='tape-label'><span>past events</span></div>
{{ range .Pages }}
{{ $t := (substr .Params.event_end 2 8) }}
{{ $time := ( replace $t "-" "") }}
{{ if gt $now $time }}
{{- partial "event_list_item.html" . -}}
{{ end }}
{{ end }}
</div>
</section>
</main>
{{ end }}