{{- with .Params.cover -}}

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

<div class='entry-cover'>
  <figure class='container cover-{{- if $isMap -}}
    {{- with .style -}} {{ . }} {{- else -}} normal {{- end -}}
    {{- else -}} normal {{- end -}}
  '>
    <img src='{{ if $isMap }}{{ .image }}{{ else }}{{ . }}{{ end }}'
      {{- if $isMap }}
        {{- with ( .alternate | default .caption ) }} alt='{{ . | markdownify }}'{{ end -}}
      {{ end -}} />
    {{ if $isM