Skip to content

Commit 8c1be3e

Browse files
committed
Show upcoming events with the earliest events first
1 parent 1b3d167 commit 8c1be3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

layouts/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ <h1 class="home-section-heading">
5656
></span>
5757
</h1>
5858
<div class="home-events">
59-
{{ range first 4 (where .Site.RegularPages "Section" "events" ).ByDate.Reverse }}
59+
{{ $today := time.AsTime (now.Format "2006-01-02") }}
60+
{{ range first 4 (where (where .Site.RegularPages "Section" "events") ".Date" "ge" $today).ByDate }}
6061
<a class="event_card_link hvr-float" href="{{ .RelPermalink }}"
6162
>{{- partial "event_card.html" . -}}</a
6263
>

0 commit comments

Comments
 (0)