Test Post

This is a test post to confirm Astro’s content collections render markdown end-to-end. If you’re reading this on /blog/test-post, the pipeline works.

What this verifies

The pipeline covers frontmatter parsing, markdown body rendering, and routing through the dynamic [slug].astro page.

Things that should render correctly below:

  • Headings at multiple levels
  • Paragraphs with bold and italic text
  • Code blocks with Shiki syntax highlighting
  • Bulleted and numbered lists
  • Image references resolved from public/

A code sample

import { getCollection } from 'astro:content';

const posts = await getCollection('blog');
const sorted = posts.sort(
  (a, b) => b.data.date.valueOf() - a.data.date.valueOf(),
);

An ordered list

  1. Drop a markdown file into src/content/blog/
  2. Frontmatter is validated against src/content.config.ts
  3. The dynamic route [slug].astro builds a static page at /blog/<slug>

An image reference

Test image placeholder

The image above will 404 until public/images/blog/test.jpg exists — that’s expected for this scaffold check.