forked from Fediversity/Fediversity
27 lines
848 B
HTML
27 lines
848 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>
|
|
{{ end }}
|
|
</ul>
|
|
</section>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|