mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-20 02:35:22 +00:00
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:
1 parent
e9699d8c5d
commit
4feebf8acd
1 file changed
+1
-1
@@ -41,7 +41,7 @@
|
||||
{{ else }}
|
||||
{{ with .Params.tags }}"keywords": {{ . }},{{ end }}
|
||||
{{ end }}
|
||||
"mainEntityOfPage": "true",
|
||||
"mainEntityOfPage": {{ .Permalink }},
|
||||
"wordCount": "{{ .WordCount }}"
|
||||
}{{ if site.Params.enableStructuredBreadcrumbs | default false }},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user