{{/** Follow site config: if not configuired, no donation info will ever render **/}}
{{- .Scratch.Set "donationEnabled" (isset .Site.Params "donation") -}}

{{/** Page frontmatter overrides site config: a page can disable donation infor rendeirng with donation:false **/}}
{{- if .Scratch.Get "donationEnabled" -}}
  {{/** `with` cannot distinguish `false` from `nil`, making it useless here. Just compare with `false` for now. **/}}
  {{- .Scratch.Set "donationEnabled" (ne $.Params.donation false) -}}
{{- end