diff --git a/layouts/partials/card.html b/layouts/partials/card.html
index e5e42fe..ef88f99 100644
--- a/layouts/partials/card.html
+++ b/layouts/partials/card.html
@@ -12,18 +12,23 @@
{{- $img = $refImg -}}
{{- end -}}
{{ if $img -}}
- {{- $image := (resources.Get (printf "img/%s" $img)).Resize "400x" -}}
-
- {{ else if .Params.teaser }}
+ {{- $image := resources.Get (printf "img/%s" $img) -}}
+ {{- if eq $image nil -}}
+ {{- warnf "not found: %v" $img -}}
+ {{- else -}}
+ {{- $image = $image.Resize "400x" -}}
+
+ {{- end -}}
+ {{- else if .Params.teaser -}}
{{ .Params.teaser }}