{{- with .Params.cover -}} {{- $type := ( printf "%T" . ) -}} {{- $isMap := ( not ( eq $type "string" ) ) -}}