SEO for Astro
Islands architecture and content-first performance.
Overview
Astro ships zero JS by default and renders pages to static HTML, making it excellent for content SEO and Core Web Vitals. Its islands architecture lets you add interactivity only where needed.
Common SEO issues
- Forgetting to set per-page title and description via Astro frontmatter
- Not generating a sitemap via @astrojs/sitemap
- Large interactive islands delaying LCP
Implementation checklist
- Use the <head> component or astro-seo for per-page meta
- Add @astrojs/sitemap and submit to Search Console
- Add JSON-LD via a layout component
- Keep islands small and lazy-loaded
- Use Astro's built-in image optimisation with width/height
Schema tip
Render structured data in a layout slot so every page inherits Organization schema and can add page-specific schema.
Internal linking tip
Generate related-posts links from frontmatter tags so content clusters link together automatically.
Find your biggest SEO opportunities in minutes
Upload your Google Search Console export and AI hands you a prioritised roadmap — lost clicks, CTR gaps, revenue leakage, and exactly what to fix first. Your first analysis is free.