fix: split JSON-LD array into separate script tags - fixes @context.toLowerCase error
This commit is contained in:
+12
-7
@@ -90,13 +90,12 @@ export default async function RootLayout({
|
||||
className={`${jakartaSans.variable} ${jetbrainsMono.variable} dark h-full antialiased`}
|
||||
>
|
||||
<body className="min-h-full flex flex-col bg-slate-950 text-slate-100 font-sans selection:bg-red-500 selection:text-white tracking-normal leading-relaxed" suppressHydrationWarning>
|
||||
{/* Organization + WebSite JSON-LD — global entity recognition */}
|
||||
{/* Organization JSON-LD */}
|
||||
<script
|
||||
type="application/ld+json"
|
||||
suppressHydrationWarning
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: JSON.stringify([
|
||||
{
|
||||
__html: JSON.stringify({
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'Organization',
|
||||
name: 'ayris.tech',
|
||||
@@ -109,8 +108,15 @@ export default async function RootLayout({
|
||||
],
|
||||
description:
|
||||
'ayris.tech is a YouTube channel and resource portal publishing tutorials on Next.js, React, TypeScript, Python, AI agents, Docker, and modern full-stack development.',
|
||||
},
|
||||
{
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
{/* WebSite JSON-LD */}
|
||||
<script
|
||||
type="application/ld+json"
|
||||
suppressHydrationWarning
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: JSON.stringify({
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'WebSite',
|
||||
name: 'ayris.tech YouTube Portal',
|
||||
@@ -123,8 +129,7 @@ export default async function RootLayout({
|
||||
target: { '@type': 'EntryPoint', urlTemplate: `${BASE_URL}/en/lessons?q={search_term_string}` },
|
||||
'query-input': 'required name=search_term_string',
|
||||
},
|
||||
},
|
||||
]),
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
<Script
|
||||
|
||||
Reference in New Issue
Block a user