This repository has been archived on 2024-11-13. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website/themes/nluug/layouts/evenementen/list.html

39 lines
1.1 KiB
HTML
Raw Normal View History

2023-05-10 20:04:45 +02:00
{{ define "main" }}
2023-06-15 19:42:21 +02:00
{{ $.Scratch.Set "highlighted_events" slice }}
{{ range .Pages }}
{{ if isset .Params "event_start" }}
{{ $event_start := .Params.event_start | time }}
{{ if le now $event_start }}
{{ $.Scratch.Add "highlighted_events" . }}
{{ end }}
{{ end }}
{{ end }}
{{ if (gt ($.Scratch.Get "highlighted_events" | len) 0) }}
<h2>Aankomende evenementen</h2>
<div class="three-column-grid">
{{ range $.Scratch.Get "highlighted_events" }}
{{ partial "show-highlighted-event.html" . }}
{{ end }}
</div>
{{ end }}
<h2>Overzicht</h2>
2023-05-10 20:04:45 +02:00
<section>
<ul class="list">
2023-06-15 19:42:21 +02:00
{{ range .Pages.ByDate }}
2023-05-10 20:04:45 +02:00
<li>
<a class="link" href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
<hr class="hr-list">
{{ if isset .Params "event_start" }}
<time class="g time" datetime="{{ dateFormat "02-01-2006" .Params.event_start }}">{{ dateFormat "02-01-2006" .Params.event_start }}</time>
{{ end }}
</li>
{{ end }}
</ul>
</section>
{{ end }}