forked from laurens/fediversity_website
Alleen events tonen die nog niet zijn geweest
This commit is contained in:
parent
fc27b95304
commit
3d6fd9878f
|
@ -23,21 +23,24 @@
|
|||
<h2>Aankomende evenementen</h2>
|
||||
<div class="three-column-grid">
|
||||
{{ range $upcoming_events }}
|
||||
{{ if eq .highlight_on_homepage true }}
|
||||
<div class="highlight-box highlight-box-{{ if .nluug_event }}nluug{{ else }}other{{end }}">
|
||||
<h3>{{ .name }}</h3>
|
||||
<p><strong>Datum</strong><br><time class="g time" datetime="{{ dateFormat "2006-01-02" .date_start }}">{{ .date_start | time.Format ":date_full" | strings.FirstUpper }}</time></p>
|
||||
<!-- <div class="m-b-sm"> -->
|
||||
{{ if .event_location }}
|
||||
<p><strong>Locatie</strong><br>
|
||||
{{ with .event_location }}{{ . }}<br>{{ end }}
|
||||
{{ with .event_address }}
|
||||
{{ with .street_address }}{{ . }}{{ end }}<br>{{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }}
|
||||
{{ $date_start := .date_start | time }}
|
||||
{{ if ge $date_start now }}
|
||||
{{ if eq .highlight_on_homepage true }}
|
||||
<div class="highlight-box highlight-box-{{ if .nluug_event }}nluug{{ else }}other{{end }}">
|
||||
<h3>{{ .name }}</h3>
|
||||
<p><strong>Datum</strong><br><time class="g time" datetime="{{ dateFormat "2006-01-02" .date_start }}">{{ .date_start | time.Format ":date_full" | strings.FirstUpper }}</time></p>
|
||||
<!-- <div class="m-b-sm"> -->
|
||||
{{ if .event_location }}
|
||||
<p><strong>Locatie</strong><br>
|
||||
{{ with .event_location }}{{ . }}<br>{{ end }}
|
||||
{{ with .event_address }}
|
||||
{{ with .street_address }}{{ . }}{{ end }}<br>{{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }}
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ with .event_url }}<a href="{{ . }}" class="button">Meer informatie</a>{{ end }}
|
||||
</div>
|
||||
{{ with .event_url }}<a href="{{ . }}" class="button">Meer informatie</a>{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
Reference in a new issue