oyd
/
oyd-web-en
Archived
7
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
oyd-web-en/layouts/partials/events.html

12 lines
439 B

{{ range $i, $element := sort $.Site.Data.events.events "iso8601" }}
{{ if and (le $i 2) (now.Before (time .iso8601)) }}
<div class="event {{ if eq (mod $i 2) 1 }}odd{{else}}even{{end}}">
<div class="eventTitle"><a href="{{ .url }}">{{ .title }}</a></div>
<div class="eventLocation">{{ .where }}</div>
<div class="eventDate">{{ .when }}</div>
<div class="eventDetails">{{ .what | markdownify }}</div>
</div>
{{ end }}
{{ end }}