{{ $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 }} {{ $showmeta := "false" }} {{ if and (ne .context.Params.when "") (ne .context.Params.when nil) }} {{ $showmeta = "true" }} {{ end }} {{ if and (ne .context.Params.price "") (ne .context.Params.price nil) }} {{ $showmeta = "true" }} {{ end }} {{ if and (ne .context.Params.registeremail "") (ne .context.Params.registeremail nil) }} {{ $showmeta = "true" }} {{ end }} {{ if and (ne .context.Params.covid "") (ne .context.Params.covid nil) }} {{ $showmeta = "true" }} {{ end }} {{ if and (ne .context.Params.contact "") (ne .context.Params.contact nil) }} {{ $showmeta = "true" }} {{ end }} {{ if and (ne .context.Params.contact "") (ne .context.Params.contact nil) }} {{ $showmeta = "true" }} {{ end }} {{ if eq $showmeta "true" }}