{{ define "main" }} {{ with .Params.event_title }}

{{ . }}

{{ end }}
{{ .Content }}
{{ if isset .Params "event_start" }} {{ $event_start := .Params.event_start | time }}

Locatie

{{ .Params.event_location }}

{{ .Params.event_address.street_address }}
{{ .Params.event_address.postal_code }}, {{ .Params.event_address.city }}
{{ .Params.event_address.country_name }}

Datum en tijd

{{ with .Params.event_register_link }} {{ if le now $event_start }} Inschrijven {{ else }}

Dit evenement is al afgelopen, inschrijven is daarom niet meer mogelijk.

{{ end }} {{ end }}

Kalender

Zet het event alvast in je agenda met onderstaande opties!

{{ else }}

Waarschuwing: dit evenement mist gegevens zoals start en einddatum.

{{ end }}

Programma

{{ $.Scratch.Set "counter" 0 }} {{ with .Params.event_schedule }} {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }} {{ with .name }}

{{$.Scratch.Get "counter"}}. {{ . }}

{{ end }}
{{ with .headers }} {{ range . }} {{ .text }} {{ end }} {{ end }} {{ with .rows }} {{ range . }} {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }} {{ with .description }}
{{ . }}
{{ end }} {{ $.Scratch.Set "counter2" 0 }} {{ with .columns }} {{ range . }} {{ if .time }}{{ .time }}{{ end }} {{ $.Scratch.Set "counter2" (add ($.Scratch.Get "counter2") 1) }} {{ with .talk }} {{ if .speaker }} {{ .speaker }}
{{ else }} Jouw talk? {{ end }} {{ if and (.title) (.link) }} {{ if .link }} {{ if .keynote }}Keynote: {{ end }}{{ .title }} {{ else }} {{ . }} {{ end }} {{ else }} {{ if .title }}{{ if .keynote }}Keynote: {{ end }}{{ .title }}{{ end }} {{ end }} {{ end }} {{ with .textfield }} {{ if and (.text) (.link) }} {{ .text }} {{ else }} {{ with .text }}{{ . }}
{{ end }} {{ end }} {{ end }} {{ end }} {{ end }}
{{ end }} {{ end }}
{{ else }}

Waarschuwing: dit project is niet goed geconfigureerd in de front matter.

{{ end }} {{ end }}