From 4feebf8acdf2bb35d922a0ac3d079a8f273e3d76 Mon Sep 17 00:00:00 2001 From: Chandler Thompson <3262190+chandlertee@users.noreply.github.com> Date: Sat, 6 Jun 2026 21:22:53 -0500 Subject: [PATCH] fix(schema): use page URL for mainEntityOfPage instead of "true" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Article JSON-LD set "mainEntityOfPage": "true" on every non-home page. schema.org/mainEntityOfPage expects a CreativeWork or a URL — a boolean string is invalid. Emit the page's canonical URL, mirroring the adjacent "url" : {{ .Permalink }}. Fixes #2971 Co-Authored-By: Claude Opus 4.8 (1M context) --- layouts/partials/schema.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/schema.html b/layouts/partials/schema.html index 76d6ea0c..9844a2cb 100644 --- a/layouts/partials/schema.html +++ b/layouts/partials/schema.html @@ -41,7 +41,7 @@ {{ else }} {{ with .Params.tags }}"keywords": {{ . }},{{ end }} {{ end }} - "mainEntityOfPage": "true", + "mainEntityOfPage": {{ .Permalink }}, "wordCount": "{{ .WordCount }}" }{{ if site.Params.enableStructuredBreadcrumbs | default false }}, {