Welcome to the blog


This site uses Astro content collections for markdown posts.

Frontmatter

Each post supports:

  • title — post title
  • date — publication date (YYYY-MM-DD or parseable string)
  • description — used in listings and meta tags
  • draft — when true, the post is omitted from the blog index and routes
  • tags — optional list of strings

Code samples

Syntax highlighting uses Shiki (github-dark theme):

import { getCollection } from 'astro:content';

const posts = await getCollection('blog', ({ data }) => !data.draft);

Happy writing!