Fediversity/layouts/events/list.html
2024-05-08 09:46:15 +02:00

24 lines
695 B
HTML

{{ define "main" }} {{ partial "page-header" . }}
<div class="center-layout">
<ul class="list">
{{ if gt (len (where .Site.RegularPages "Section" "events")) 0 }}
<section>
<h2>Upcoming Events</h2>
<ul class="list">
{{ range (first 5 (where .Site.RegularPages "Section" "events").ByDate.Reverse) }}
<li class="list-item">
<div class="content">
<a class="link" href="{{ .RelPermalink }}">{{ .Title }}</a>
</div>
<hr class="hr-list">
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "02-01-2006" .Date }}</time>
</li>
{{ end }}
</ul>
</section>
{{ end }}
</ul>
</div>
{{ end }}