Skip to content

feat: add sitemap, robots.txt, and canonical URLs - #169

Merged
magnus-madsen merged 1 commit into
masterfrom
seo-sitemap-robots
Aug 3, 2026
Merged

feat: add sitemap, robots.txt, and canonical URLs#169
magnus-madsen merged 1 commit into
masterfrom
seo-sitemap-robots

Conversation

@magnus-madsen

Copy link
Copy Markdown
Member

Summary

Fixes the main SEO/discoverability gaps found in an audit of the site:

  • Set site: https://flix.dev in astro.config.mjs (required for sitemap generation and canonical URLs)
  • Add the @astrojs/sitemap integration — the build now emits sitemap-index.xml + sitemap-0.xml covering all 9 pages
  • Add public/robots.txt allowing all crawlers and pointing at the sitemap
  • Render <link rel=canonical> on every page via Layout.astro

Testing

  • npm run build completes cleanly; all 9 pages generated
  • Verified dist/sitemap-0.xml lists all pages with correct https://flix.dev/... URLs
  • Verified canonical tags in built HTML, e.g. https://flix.dev/ (index) and https://flix.dev/faq/

After deploying, consider submitting https://flix.dev/sitemap-index.xml to Google Search Console to speed up indexing.

🤖 Generated with Claude Code

- Set site: https://flix.dev in the Astro config
- Add @astrojs/sitemap integration (generates sitemap-index.xml)
- Add public/robots.txt pointing crawlers at the sitemap
- Emit <link rel=canonical> on every page via Layout.astro

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@magnus-madsen
magnus-madsen merged commit cc01fc4 into master Aug 3, 2026
1 check passed
@magnus-madsen
magnus-madsen deleted the seo-sitemap-robots branch August 3, 2026 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant