diff --git a/layouts/partials/templates/opengraph.html b/layouts/partials/templates/opengraph.html
index 13e7b2b..6b187f2 100644
--- a/layouts/partials/templates/opengraph.html
+++ b/layouts/partials/templates/opengraph.html
@@ -3,7 +3,7 @@
{{- if .Params.cover.image -}}
-{{- if (ne .Params.cover.relative true) }}
+{{- if (eq .Params.cover.absolute true) }}
{{- else}}
diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html
index 74abbb5..6ce1c2e 100644
--- a/layouts/partials/templates/schema_json.html
+++ b/layouts/partials/templates/schema_json.html
@@ -75,7 +75,7 @@
"inLanguage": {{ .Language.Lang | default "en-us" }},
{{ if .Params.cover.image -}}
"image":
- {{- if (ne .Params.cover.relative true) -}}
+ {{- if (eq .Params.cover.absolute true) }}
{{ .Params.cover.image | absURL }},
{{- else -}}
{{ (path.Join .RelPermalink .Params.cover.image ) | absURL }},
diff --git a/layouts/partials/templates/twitter_cards.html b/layouts/partials/templates/twitter_cards.html
index bd46e37..7716bb5 100644
--- a/layouts/partials/templates/twitter_cards.html
+++ b/layouts/partials/templates/twitter_cards.html
@@ -1,6 +1,6 @@
{{- if .Params.cover.image -}}
-{{- if (ne $.Params.cover.relative true) }}
+{{- if (eq .Params.cover.absolute true) }}
{{- else }}