Fediversity/layouts/events/list.html

24 lines
695 B
HTML
Raw Normal View History

2024-04-03 11:51:52 +02:00
{{ define "main" }} {{ partial "page-header" . }}
2024-05-08 09:46:15 +02:00
<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>
2024-04-03 11:51:52 +02:00
</div>
2024-05-08 09:46:15 +02:00
<hr class="hr-list">
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "02-01-2006" .Date }}</time>
2024-04-23 11:07:01 +02:00
2024-05-08 09:46:15 +02:00
</li>
{{ end }}
</ul>
</section>
{{ end }}
</ul>
</div>
2024-04-03 11:51:52 +02:00
{{ end }}