add information flag to event items on past events, wip #2

This commit is contained in:
rra 2021-09-30 09:18:40 +02:00
parent b19bfc8ed7
commit 609a176bf9

View File

@ -1,5 +1,6 @@
<div class='card calendar'>
<article class="h-event calendar">
{{ $t := (time .Params.event_end) }}
<div class='card calendar {{ if $t.Before now }}past{{end}}'>
<article class="h-event calendar ">
<header>
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2>
</header>
@ -25,4 +26,5 @@
</article>
</div>
</div>