Welcome to the blog
This site uses Astro content collections for markdown posts.
Frontmatter
Each post supports:
title— post titledate— publication date (YYYY-MM-DDor parseable string)description— used in listings and meta tagsdraft— whentrue, the post is omitted from the blog index and routestags— 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!