PAGES KNOWLEDGE BASE

OVERVIEW

Astro page routes with i18n support, dynamic routing for blog/project/resource

STRUCTURE

src/pages/
├── blog/ # Blog posts and lists
├── project/ # Project showcases
├── resource/ # Resource collections
├── og/ # Open Graph image generation
├── zh/ # Chinese mirrored routes
├── en/ # English mirrored routes
├── index.astro # Home page
└── [others].astro # Static pages (about, friend, 404)

WHERE TO LOOK

TaskLocationNotes
Blog postssrc/pages/blog/[...slug].astroPost content rendering
Blog listsrc/pages/blog/[...page].astroPaginated list
Project pagessrc/pages/project/Project routes
Resource pagessrc/pages/resource/Resource routes
OG imagessrc/pages/og/[...slug].png.tsDynamic OG generation
i18nsrc/pages/zh/, src/pages/en/Mirrored routes

CODE MAP

SymbolTypeLocationRole
getStaticPathsfunctionsrc/pages/blog/[...slug].astroGenerate post routes
getStaticPathsfunctionsrc/pages/blog/[...page].astroGenerate paginated routes
OG Imageendpointsrc/pages/og/[...slug].png.tsSatori-based image generation

CONVENTIONS

ANTI-PATTERNS