My First Blog Post: Getting Started
A test post to understand how the blog system works — from content creation to page rendering.
This is a test blog post to see how everything works end to end.
How This Post Was Created
- Created a markdown file at
src/content/posts/21.md - Added frontmatter matching the schema defined in
src/content.config.ts - Referenced an existing author (
david-lee) fromsrc/content/authors/ - Referenced an existing image from
src/images/blog/
What Happens Next
Astro’s content collection system picks up this file automatically. The dynamic route at src/pages/blog/posts/[...slug].astro generates a page for it using getStaticPaths().
The post will appear at: /blog/posts/21
Frontmatter Flags Explained
| Flag | Purpose |
|---|---|
isBreaking | Shows on the Breaking News page |
isTopStory | Shows on the Top Stories page |
isFeatured | Shows on the Featured page |
isBrief | Shows in the Briefs section on the homepage |
isLocked | Marks as subscriber-only content |
That’s it — just a markdown file with the right frontmatter, and the blog system handles the rest.