For a course assignment, it is not enough to just “have multiple pages.” You also need clear, meaningful reuse of layouts and components.
In this project:
BaseLayout.astroowns the global<html>,<head>, and<body>structure.SiteHeader.astroandSiteFooter.astroare imported by the layout and appear on every page.PostCard.astrorenders a consistent summary view of each blog post.TagList.astroformats post tags in one place and is reused across listing pages.
This architecture means:
- You can add new pages (like
/aboutor/guides) that automatically inherit the same chrome. - You can change the header or footer in one file, and every page updates.
- You can tune the design of cards in one component instead of editing markup in multiple routes.
Astro encourages this modular approach while still compiling everything down to static HTML.