forked from laurens/fediversity_website
Merge branch 'main' of https://github.com/NLUUG/website
This commit is contained in:
commit
38361a3ca2
|
@ -2,10 +2,9 @@
|
||||||
|
|
||||||
{{ $.Scratch.Set "highlighted_events" slice }}
|
{{ $.Scratch.Set "highlighted_events" slice }}
|
||||||
|
|
||||||
{{ range .Pages }}
|
{{ range (.Pages.ByParam "event_start").Reverse }}
|
||||||
{{ if isset .Params "event_start" }}
|
{{ if isset .Params "event_start" }}
|
||||||
{{ $event_start := .Params.event_start | time }}
|
{{ $event_start := .Params.event_start | time }}
|
||||||
|
|
||||||
{{ if le now $event_start }}
|
{{ if le now $event_start }}
|
||||||
{{ $.Scratch.Add "highlighted_events" . }}
|
{{ $.Scratch.Add "highlighted_events" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -24,7 +23,7 @@
|
||||||
<h2>Overzicht</h2>
|
<h2>Overzicht</h2>
|
||||||
<section>
|
<section>
|
||||||
<ul class="list">
|
<ul class="list">
|
||||||
{{ range .Pages.ByDate }}
|
{{ range (.Pages.ByParam "event_start").Reverse }}
|
||||||
<li>
|
<li>
|
||||||
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
|
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
|
||||||
<hr class="hr-list">
|
<hr class="hr-list">
|
||||||
|
|
Reference in a new issue