fix(schema): use page URL for mainEntityOfPage instead of "true"

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) <noreply@anthropic.com>
This commit is contained in:
Chandler ThompsonandClaude Opus 4.8 committed 2026-06-06 21:22:53 -05:00
1 parent e9699d8c5d
commit 4feebf8acd
1 file changed
+1 -1
+1 -1
View File
@@ -41,7 +41,7 @@
{{ else }}
{{ with .Params.tags }}"keywords": {{ . }},{{ end }}
{{ end }}
"mainEntityOfPage": "true",
"mainEntityOfPage": {{ .Permalink }},
"wordCount": "{{ .WordCount }}"
}{{ if site.Params.enableStructuredBreadcrumbs | default false }},
{