{{ $visible := "none" }} {{ $covid := "false" }} {{ $price := "false" }} {{ $contact := "false" }} {{ $registeremail := "false" }} {{ if .visible }} {{ $visible = split .visible "," }} {{ range $visible }} {{ if eq . "covid" }} {{ $covid = "true" }} {{ end }} {{ if eq . "price" }} {{ $price = "true" }} {{ end }} {{ if eq . "contact" }} {{ $contact = "true" }} {{ end }} {{ if eq . "registeremail" }} {{ $registeremail = "true" }} {{ end }} {{ if eq . "all" }} {{ $contact = "true" }} {{ $price = "true" }} {{ $covid = "true" }} {{ $registeremail = "true" }} {{ end }} {{ end }} {{ end }}
{{ if and (ne .context.Params.when "") (ne .context.Params.when nil) }}
{{ .context.Params.when }}
{{ end }} {{ if and (ne .context.Params.price "") (ne .context.Params.price nil) (eq $price "true") }} {{ if eq .context.Params.price "free" }}
Der Eintritt ist frei.
{{ else }}
Eintritt: {{ .context.Params.price }}
{{ end }} {{ end }} {{ if and (ne .context.Params.registeremail "") (ne .context.Params.registeremail nil) (eq $registeremail "true")}}
Anmeldung unter {{ .context.Params.registeremail | markdownify }} erwünscht
{{ else if and (ne .context.Params.registeremail "") (ne .context.Params.registeremail nil) (eq $registeremail "false")}} {{ $.context.Scratch.Set "meta" "true" }} {{ end }} {{ if and (ne .context.Params.covid "") (ne .context.Params.covid nil) (eq $covid "true") }}
Es gilt die {{ .context.Params.covid }} Regel
{{ end }} {{ if and (ne .context.Params.contact "") (ne .context.Params.contact nil) (eq $contact "true") }}
Kontakt: {{ .context.Params.contact }}
{{ else if and (ne .context.Params.contact "") (ne .context.Params.contact nil) (eq $contact "false") }} {{ $.context.Scratch.Set "meta" "true" }} {{ end }}