Files
SnapOtter/apps/landing/src/components/JsonLd.astro
T
SnapOtter 8403222d08 feat(landing): migrate from Next.js to Astro 5
Zero client JS, 165 static pages, self-hosted fonts, Otter Orange
design system. Includes tool SEO data for all 157 tools, enterprise
page, and updated e2e landing tests.
2026-06-14 16:50:20 +08:00

13 lines
279 B
Plaintext

---
interface Props {
data: Record<string, unknown> | Record<string, unknown>[];
}
const { data } = Astro.props;
const schemas = Array.isArray(data) ? data : [data];
---
{schemas.map((schema) => (
<script type="application/ld+json" set:html={JSON.stringify(schema)} />
))}