From 2daa61ea4371799e01a45d62d7a8586807187624 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 15 Oct 2020 09:41:17 +0530 Subject: [PATCH] json-schema: add @id element --- layouts/partials/templates/schema_json.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html index b5a99414..95970dae 100644 --- a/layouts/partials/templates/schema_json.html +++ b/layouts/partials/templates/schema_json.html @@ -48,7 +48,8 @@ "name": {{ .Params.author | default .Site.Params.author }} }, "mainEntityOfPage": { - "@type": "WebPage" + "@type": "WebPage", + "@id": {{ .Permalink | safeHTML }} }, "publisher": { "@type": "{{- ( .Site.Params.schema.publisherType | default "Organization") | humanize -}}",