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>
|
<h2>Aankomende evenementen</h2>
|
||||||
<div class="three-column-grid">
|
<div class="three-column-grid">
|
||||||
{{ range $upcoming_events }}
|
{{ range $upcoming_events }}
|
||||||
{{ if eq .highlight_on_homepage true }}
|
{{ $date_start := .date_start | time }}
|
||||||
<div class="highlight-box highlight-box-{{ if .nluug_event }}nluug{{ else }}other{{end }}">
|
{{ if ge $date_start now }}
|
||||||
<h3>{{ .name }}</h3>
|
{{ if eq .highlight_on_homepage true }}
|
||||||
<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="highlight-box highlight-box-{{ if .nluug_event }}nluug{{ else }}other{{end }}">
|
||||||
<!-- <div class="m-b-sm"> -->
|
<h3>{{ .name }}</h3>
|
||||||
{{ if .event_location }}
|
<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>
|
||||||
<p><strong>Locatie</strong><br>
|
<!-- <div class="m-b-sm"> -->
|
||||||
{{ with .event_location }}{{ . }}<br>{{ end }}
|
{{ if .event_location }}
|
||||||
{{ with .event_address }}
|
<p><strong>Locatie</strong><br>
|
||||||
{{ with .street_address }}{{ . }}{{ end }}<br>{{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }}
|
{{ 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 }}
|
{{ end }}
|
||||||
</p>
|
{{ with .event_url }}<a href="{{ . }}" class="button">Meer informatie</a>{{ end }}
|
||||||
{{ end }}
|
</div>
|
||||||
{{ with .event_url }}<a href="{{ . }}" class="button">Meer informatie</a>{{ end }}
|
{{ end }}
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in a new issue