Browse Source

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

main
rra 3 years ago
parent
commit
609a176bf9
  1. 4
      layouts/partials/calendar_card.html

4
layouts/partials/calendar_card.html

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