{{ $sites := where site.RegularPages "Section" "events" }}
{{ if gt (len $sites) 0 }}
    <div class="concerts">
        <h2>Programme</h2>
        {{ range sort $sites ".Params.ConcertDate" }}
            {{ $currentTime := (time now) }}
            {{ $delta := $currentTime.Sub (time .Params.ConcertDate ) }}
            {{ if lt $delta 0 }}
                {{ partial "events/entry.html" (dict "context" . "tickets" true) }}
            {{ end }}
        {{ end }}
    </div>
{{ end }}
