The SEO Preflight
This is a member-only chapter. Log in with your Signal Over Noise membership email to continue.
Log in to readModule 6 · Section 4 of 7
The SEO Preflight
Before shipping any content site, run a build and check the output. There are four things to verify:
Title tags: Every page has a unique <title>. Check dist/ for any pages with a generic or missing title.
Meta descriptions: Every page has a <meta name="description"> with content that’s under 160 characters.
Open Graph tags: For shared links to look right in social feeds and chat apps, add og:title, og:description, and og:image to your layout head.
Canonical URLs: For sites with multiple versions of the same URL (with and without trailing slash, for example), add <link rel="canonical"> to prevent duplicate content issues.
A Claude Code prompt for this:
Check the SEO setup for this Astro project.
Read src/layouts/BaseLayout.astro and check:
- Is there a <title> tag that uses a prop?
- Is there a <meta name="description"> tag?
- Are there Open Graph tags (og:title, og:description, og:image)?
If any are missing, add them. The og:image should default to /og-default.png
if no specific image is provided.