{{ $currLang:=.Page.Lang }} {{ $event_id := .Get "event" | default "default" }} {{ $year := .Get "year" }} {{ if $year }} {{ .Scratch.Set "base" (index (index .Site.Data $currLang) $year) }} {{ else }} {{ .Scratch.Set "base" (index .Site.Data $currLang) }} {{ end }} {{ $base := .Scratch.Get "base" }} {{ $registration := (index $base $event_id).registration }} {{ $t := time $registration.end_date }}
{{ if $registration.image }}
{{ $registration.image | safeHTML }}
{{ end }}

{{ .Get "title" | default $registration.title }}

{{ .Inner | markdownify }} {{- with $registration.links }} {{ end }}
{{ if $t.Before now }}

{{ $registration.end_text }}

{{ end }} {{ $registration.custom_content | safeHTML }}