{{ $image := "" }} {{ if .page }} {{ $image = .page.Resources.GetMatch .page.Params.background }} {{ else }} {{ $image = resources.Get .src }} {{ end }} {{ if $image }} {{ $small := $image.Fit "640x360 webp" }} {{ $medium := $image.Fit "1280x720 webp" }} {{ $large := $image.Fit "1920x1080 webp" }} {{ end }}
{{ partial "components/cards/base.html" (dict "heading" (or .heading .page.Title) "noHeading" .noHeading "content" .content "cta" .cta "noShare" .noShare "url" (or .url .page.Permalink) "styles" .baseStyles "headingStyles" .headingStyles "contentStyles" .contentStyles "pStyles" .pStyles "footerStyles" .footerStyles "ctaStyles" .ctaStyles )}}