7
0
Fork 0

Markup van datum in content

This commit is contained in:
Michael Boelen 2023-05-17 20:58:16 +02:00
parent 534c5041cc
commit 753cab1141

View file

@ -9,7 +9,7 @@
<h3>{{ .date_start | dateFormat "02-01-2006" }} - {{ .name }}</h3> <h3>{{ .date_start | dateFormat "02-01-2006" }} - {{ .name }}</h3>
{{ with .organizer }}<p><em>Georganizeerd door {{ .}}</em></p>{{ end }} {{ with .organizer }}<p><em>Georganizeerd door {{ .}}</em></p>{{ end }}
{{ if ne .date_start .date_end }} {{ if ne .date_start .date_end }}
<p>Event van meerdere dagen: {{ .date_start | dateFormat "02-01-2006" }} t/m {{ .date_end | dateFormat "02-01-2006" }}</p> <p>Event van meerdere dagen: <time class="g time" datetime="{{ dateFormat "2006-01-02" .date_start }}">{{ .date_start | dateFormat "02-01-2006" }}</time> t/m <time class="g time" datetime="{{ dateFormat "2006-01-02" .date_end }}">{{ .date_end | dateFormat "02-01-2006" }}</time></p>
{{ end }} {{ end }}
{{ $event_location := .event_location | default "Locatie onbekend" }} {{ $event_location := .event_location | default "Locatie onbekend" }}
{{ with .event_address }} {{ with .event_address }}