{{ $imgPath := (cond (isset .Params "cover") .Params.cover .Params.bigpicture) }} {{ $img := .Resources.Get $imgPath }} {{ if $img }} {{ .Scratch.Set "teaser-image" $img }} {{ else }} {{ $img := resources.Get $imgPath }} {{ if $img }} {{ .Scratch.Set "teaser-image" $img }} {{ else }} {{ end }} {{ end }} {{ $alt := (cond (isset .Params "coveralt") .Params.coveralt .Params.bigpicturealt) }} {{ $copy := (cond (isset .Params "covercaption") .Params.covercaption .Params.bigpicturecaption) }} {{ $classes := (cond (isset .Params "coverclass") .Params.coverclass .Params.bigpictureclass) }} {{ if and (isset .Params "bigpictureDNM") .Params.bigpictureDNM }} {{ .Scratch.Set "teaser-image-dnm" true }} {{ else }} {{ .Scratch.Set "teaser-image-dnm" false }} {{ end }} {{ $dnm := .Scratch.Get "teaser-image" }} {{ with .Scratch.Get "teaser-image" }} {{ if $dnm }} {{ else }} {{ $imgFit := .Fit "840x560" }} {{ end }} {{ end }} {{ if $copy }}
{{$copy}}
{{ end }}
{{ .Title }}
{{ .Summary }}