{{ $visible := "false" }} {{ $covid := "false" }} {{ $when := "false" }} {{ $price := "false" }} {{ $contact := "false" }} {{ $showmeta := "false" }} {{ if and (ne .context.Params.when "") (ne .context.Params.when nil) }} {{ $showmeta = "true" }} {{ $when = true }} {{ end }} {{ if and (ne .context.Params.price "") (ne .context.Params.price nil) }} {{ $showmeta = "true" }} {{ if eq .context.Params.price "free" }} {{ $price = true }} {{ end }} {{ end }} {{ if and (ne .context.Params.contact "") (ne .context.Params.contact nil) (eq .type "article") }} {{ $showmeta = "true" }} {{ $contact = true }} {{ end }} {{ if and (ne .context.Params.covid "") (ne .context.Params.covid nil) (eq .type "article") }} {{ $showmeta = "true" }} {{ $covid = true }} {{ end }} {{ if and (eq $showmeta "true") (ne .type "contact") }}