Fediversity/website/layouts/events/list.html
2024-10-07 11:53:11 +02:00

32 lines
895 B
HTML

{{ define "main" }} {{ partial "page-header" . }}
<div class="center-layout">
<ul class="list">
{{ if gt (len (where .Site.RegularPages "Section" "events")) 0 }}
<section>
<div class="header-with-image">
<img src="/images/users.png" alt="Image">
<h4 class="mb-4">Events</h4>
</div>
<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 }}" style="color: #FF6E00">{{ .Title }}</a>
</div>
<hr class="hr-list">
<time class="g time" datetime="{{ dateFormat "2006-01-02" .Date }}">{{ dateFormat "02-01-2006" .Date }}</time>
<hr class="hr-list2">
</li>
<div class="line"></div>
{{ end }}
</ul>
</section>
{{ end }}
</ul>
</div>
{{ end }}