How 0329zdn/astro-blog works
This is a minimal Astro blog/site: visitors reach file-based pages, while Markdown files are configured as a validated blog content collection. The README documents Astro’s page-to-route behavior, and the sampled content configuration shows the collection’s Markdown loader and schema. Page rendering relationships to layouts and components are not shown in the sampled source, so those links are omitted.
Main entry points: content.config.ts Blog collection · index.astro Home page · catalog.astro Catalog page · [id].astro Blog detail page
Components 10
Site routes
- Home page
src/pages/index.astro - Catalog page
src/pages/catalog.astro - Blog detail page
src/pages/blog/[id].astro
Blog content
- Blog collection
src/content.config.ts - Markdown posts
src/content/blog
Presentation
- Base layout
src/layouts/BaseLayout.astro - Header
src/components/Header.astro - Footer
src/components/Footer.astro - Global styles
src/styles/global.css
Other components
- Visitor
Connections 4
- Visitor → Home page: requests route
README.md - Visitor → Catalog page: requests route
README.md - Visitor → Blog detail page: requests route
README.md - Blog collection → Markdown posts: loads and validates
src/content.config.ts