{{ define "main" }} {{ with .Params.image }} {{ if .url }} {{- partial "components/image.html" (dict "style" "coverimage" "url" .url "alt" .alt) -}} {{ else }} {{- partial "components/image.html" (dict "style" "coverimage" "url" .) -}} {{ end }} {{ end }} {{ if .Content }}