
This file is the starter template for blog posts stored in apps/web/src/posts/. Duplicate it, rename the copy to your desired URL slug (for example, hello-world.md becomes /blog/hello-world), and replace this content with your article.
Frontmatter Reference
Every post begins with a YAML frontmatter block wrapped in --- delimiters:
title— Headline displayed on the/blogcard grid and the article page.date— ISO calendar date (YYYY-MM-DD) used to sort posts from newest to oldest.timestamp— Optional time with timezone offset (e.g.22:00:00+08:00) appended todate.author— Optional byline name (defaults toboogs).categories— YAML list of categories used for card badges and category filtering.excerpt— Optional summary for the card; auto-generated from the first body paragraph if omitted.description— Optional SEO / Open Graph description (falls back toexcerpt).ogImage/ogImageAlt— Optional social share preview image and alt text.draft— Setdraft: trueto exclude a work-in-progress file from/blogand the sitemap.
Markdown & Code Formatting
Standard GitHub Flavored Markdown is supported, including headings, lists, blockquotes, links, inline code, and syntax-highlighted fenced code blocks powered by Shiki:
export interface PostFrontmatter {
title: string
date: string
categories?: string[]
draft?: boolean
}
Tip: The first Markdown image in the post body automatically becomes the cover image on the
/blogcard. If a post has no image, the card renders in a clean text-only layout.