Fine-tuning van weergave event

This commit is contained in:
Michael Boelen 2023-05-17 21:07:17 +02:00
parent d51d5ec28b
commit 55c242d4b6

View file

@ -35,13 +35,16 @@
{{ if eq .highlight_on_homepage true }} {{ if eq .highlight_on_homepage true }}
<div class="highlight-box"> <div class="highlight-box">
<h3>{{ .name }}</h3> <h3>{{ .name }}</h3>
<p><strong>Datum</strong>: <time class="g time" datetime="{{ dateFormat "2006-01-02" .date_start }}">{{ .date_start | time.Format ":date_full" | strings.FirstUpper }}</time></p> <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"> <!-- <div class="m-b-sm"> -->
{{ with .event_location }}<strong>{{ . }}</strong><br>{{ end }} {{ if .event_location }}
<p><strong>Locatie</strong><br>
{{ with .event_location }}{{ . }}<br>{{ end }}
{{ with .event_address }} {{ with .event_address }}
{{ with .street_address }}{{ . }}{{ end }}<br>{{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }} {{ with .street_address }}{{ . }}{{ end }}<br>{{ with .postal_code }}{{ . }}{{ end }}{{ with .city }}, {{ . }}{{ end }}{{ with .country }}, {{ . }}{{ end }}
{{ end }}
</p>
{{ end }} {{ end }}
</div>
{{ with .event_url }}<a href="{{ . }}" class="button">Meer informatie</a>{{ end }} {{ with .event_url }}<a href="{{ . }}" class="button">Meer informatie</a>{{ end }}
</div> </div>
{{ end }} {{ end }}