{{ $invis := "none" }} {{ $covid := "true" }} {{ $price := "true" }} {{ $contact := "true" }} {{ $registeremail := "true" }} {{ if .invis }} {{ $invis = split .invis "," }} {{ range $invis }} {{ if eq . "covid" }} {{ $covid = "false" }} {{ end }} {{ if eq . "price" }} {{ $price = "false" }} {{ end }} {{ if eq . "contact" }} {{ $contact = "false" }} {{ end }} {{ if eq . "registeremail" }} {{ $registeremail = "false" }} {{ 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
{{ 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 }}
{{ end }}