forked from Fediversity/Fediversity
Valentin Gagarin
e41e0daa82
git-subtree-dir: website git-subtree-mainline:83b1c9ac3b
git-subtree-split:d208ee83f8
32 lines
895 B
HTML
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 }}
|