diff --git a/apps/docs/app/docs/[[...slug]]/page.tsx b/apps/docs/app/docs/[[...slug]]/page.tsx index 5157078..7db13cb 100644 --- a/apps/docs/app/docs/[[...slug]]/page.tsx +++ b/apps/docs/app/docs/[[...slug]]/page.tsx @@ -21,18 +21,43 @@ export default async function Page(props: PageProps) { const MDX = page.data.body; + // TechArticle JSON-LD — built from static MDX frontmatter (title, description), no user input + const articleJsonLd = JSON.stringify({ + "@context": "https://schema.org", + "@type": "TechArticle", + headline: page.data.title, + description: page.data.description, + url: `https://bromso.github.io/metapowers/docs/${(params.slug ?? []).join("/")}`, + author: { + "@type": "Person", + name: "Jonas Broms", + url: "https://github.com/bromso", + }, + publisher: { + "@type": "Organization", + name: "Metapowers", + url: "https://bromso.github.io/metapowers", + }, + }); + return ( - - {page.data.title} - {page.data.description} - - - - + <> +