{{- 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}}