diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 474d7f76..0b2f0f3c 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -33,7 +33,7 @@
{{- if .Params.cover.image }}
- {{- if (or (fileExists (path.Join "static" .Params.cover.image)) (hasPrefix .Params.cover.image "http://") (hasPrefix .Params.cover.image "https://")) }}
+ {{- if (ne .Params.cover.relative true) }}
{{- else}}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a4c847f5..ef5d6f3e 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -28,7 +28,7 @@
{{- if .Params.cover.image }}
- {{- if (or (fileExists (path.Join "static" .Params.cover.image)) (hasPrefix .Params.cover.image "http://") (hasPrefix .Params.cover.image "https://")) }}
+ {{- if (ne .Params.cover.relative true) }}
{{- else}}