Skip to content

feat: add SEO optimization — meta tags, sitemap, structured data#128

Merged
braboj merged 1 commit into
mainfrom
feat/seo-optimization
Apr 25, 2026
Merged

feat: add SEO optimization — meta tags, sitemap, structured data#128
braboj merged 1 commit into
mainfrom
feat/seo-optimization

Conversation

@braboj

@braboj braboj commented Apr 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add unique meta descriptions to all 9 chapters via frontmatter description field
  • Add Open Graph and Twitter Card meta tags to DocLayout
  • Add canonical URL tags
  • Install @astrojs/sitemap — generates sitemap-index.xml at build time
  • Add robots.txt pointing to sitemap
  • Add JSON-LD structured data: Course schema on home page, Article schema on each chapter
  • OG image points to /tutorial-git/images/og-banner.png (placeholder — needs a real banner)

Closes #123

Test plan

  • Build succeeds with sitemap generation
  • dist/sitemap-0.xml lists all 10 pages
  • dist/robots.txt present
  • Each page has unique <meta name="description">, OG tags, Twitter Card tags
  • JSON-LD validates at https://search.google.com/test/rich-results
  • Canonical URLs are correct

🤖 Generated with Claude Code

- Add page-specific meta descriptions via frontmatter
- Add Open Graph and Twitter Card meta tags
- Add canonical URLs
- Install @astrojs/sitemap integration
- Add robots.txt
- Add JSON-LD structured data (Course on home, Article on chapters)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@braboj braboj merged commit 78cd663 into main Apr 25, 2026
1 check passed
@braboj braboj deleted the feat/seo-optimization branch April 25, 2026 12:14
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.

Add SEO optimization: meta tags, sitemap, structured data

1 participant