diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index ef3ef296..4a998d3c 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -31,13 +31,13 @@
{{- $class = "post-entry tag-entry" }}
{{- end }}
- {{- if .Params.cover }}
+ {{- if .Params.cover.image }}
- {{ if (or (fileExists (path.Join "static" .Params.cover)) (hasPrefix .Params.cover "http://") (hasPrefix .Params.cover "https://")) }}
-
- {{else}}
-
- {{end}}
+ {{- if (or (fileExists (path.Join "static" .Params.cover.image)) (hasPrefix .Params.cover.image "http://") (hasPrefix .Params.cover.image "https://")) }}
+
+ {{- else}}
+
+ {{- end}}
{{- end }}
- {{- if .Params.cover }}
+ {{- if .Params.cover.image }}
- {{ if (or (fileExists (path.Join "static" .Params.cover)) (hasPrefix .Params.cover "http://") (hasPrefix .Params.cover "https://")) }}
-
- {{else}}
-
- {{end}}
+ {{- if (or (fileExists (path.Join "static" .Params.cover.image)) (hasPrefix .Params.cover.image "http://") (hasPrefix .Params.cover.image "https://")) }}
+
+ {{- else}}
+
+ {{- end}}
{{- end }}
{{- if .Params.ShowToc }}