From c948d475fdc1476474966f143e03c726b0227dbb Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 5 May 2022 01:39:12 +0800 Subject: [PATCH] cover.relative -> cover.absolute --- layouts/partials/templates/opengraph.html | 2 +- layouts/partials/templates/schema_json.html | 2 +- layouts/partials/templates/twitter_cards.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 }}