Skip to content
SEWWA

Schema guides Platform

How to add schema to Astro

Category: framework

Plugins and apps

Manual implementation

Layout or page frontmatter → pass props to a Seo component; emit `<script type="application/ld+json">` server-side.

Troubleshooting

Overview

This site is Astro: schema belongs in layouts or pages, computed from content collections or props—never only inside client-loaded React islands unless duplicated in the shell.

Follow SITE.url and trailingSlash config when building canonical URLs in JSON-LD, same as this blog's Article pages.

Try the free Schema Generator →