From b182ed86d2830b4061fbeb2f1f912f68a01bb21e Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Sun, 16 May 2021 10:36:17 -0400 Subject: [PATCH] fix JSON schema @id --- layouts/partials/head/schema/article.html | 2 +- layouts/partials/head/schema/person.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head/schema/article.html b/layouts/partials/head/schema/article.html index f4b9a1b5..3536a0f8 100644 --- a/layouts/partials/head/schema/article.html +++ b/layouts/partials/head/schema/article.html @@ -12,7 +12,7 @@ "description": {{ with .Description }}{{ . }}{{ else }}{{ .Site.Params.description }}{{ end }}, "wordCount": "{{ .WordCount }}", "author": { - "@id": {{ path.Join .Site.BaseURL "#author" }} + "@id": {{ print (absURL "/") "#author" }} }, "publisher": { "@type": "Organization", diff --git a/layouts/partials/head/schema/person.html b/layouts/partials/head/schema/person.html index fee38a90..1d28aef6 100644 --- a/layouts/partials/head/schema/person.html +++ b/layouts/partials/head/schema/person.html @@ -3,7 +3,7 @@ { "@context": "http://schema.org", "@type": "Person", - "@id": {{ path.Join $.Site.BaseURL "#author" }}, + "@id": {{ print (absURL "/") "#author" }}, "name": {{ .name }}, "url": {{ $.Site.BaseURL }}, "description": {{ $.Site.Params.description }},{{ with $.Scratch.Get "authorImage" }}