forked from Fediversity/Fediversity
24 lines
695 B
HTML
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 }}
|