We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b3d167 commit 8c1be3eCopy full SHA for 8c1be3e
layouts/index.html
@@ -56,7 +56,8 @@ <h1 class="home-section-heading">
56
></span>
57
</h1>
58
<div class="home-events">
59
- {{ range first 4 (where .Site.RegularPages "Section" "events" ).ByDate.Reverse }}
+ {{ $today := time.AsTime (now.Format "2006-01-02") }}
60
+ {{ range first 4 (where (where .Site.RegularPages "Section" "events") ".Date" "ge" $today).ByDate }}
61
<a class="event_card_link hvr-float" href="{{ .RelPermalink }}"
62
>{{- partial "event_card.html" . -}}</a
63
>
0 commit comments