{{ $sites := where site.RegularPages "Section" "events" }}
{{ if gt (len $sites) 0 }}
    <div class="concerts">
        <h2>Évènements passés</h2>
        {{ range sort $sites ".Params.ConcertDate" }}
            {{ $currentTime := (time now) }}
            {{ $delta := $currentTime.Sub (time .Params.ConcertDate ) }}
            {{ if gt $delta 0 }}
                {{ partial "events/entry.html" (dict "context" . "tickets" false) }}
            {{ end }}
        {{ end }}
    </div>
{{ end }}
