Skip to content
Patchwork
Start free
All docs pages

Docs · Content

Posts

Where posts go, the fields a post has, and how its cover is drawn.

Posts are .md or .mdx files in src/content/blog/<language>/. The file name is the address: src/content/blog/en/hello.mdx is /blog/hello/.

The fields

---
title: "Hello"
description: "One sentence for the card, the page and search engines."
publishedAt: 2026-11-28
author: "Your name"
category: product
cover: "hello"
icon: "hand"
tags: ["Astro"]
---
Field What it does
title, description The title (100 characters at most) and one sentence (200 at most).
publishedAt, updatedAt The dates. The blog lists the newest first.
author The name under the title.
category product, engineering or writing: the filter it falls under, and the colour of its drawn cover.
cover The word on the drawn cover, 30 characters at most. Without it the category’s name is used.
icon The icon above that word: a name from lucide.dev/icons, or a brand mark such as brand-astro. Without it the category’s icon is used.
image, imageAlt A picture instead of the drawn cover, in src/assets/, with its description.
tags Tags for the post.
featured true puts the post large at the top of the blog. Without a featured post, the newest is there.
draft true keeps the post off the site.

The drawn cover

A post without an image gets a cover the theme draws in fx/ProjectCover.astro: a glow, a fine grid and dots in the category’s colour, with the icon and the cover word in the middle. Product is violet, engineering emerald and writing magenta; the colours and icons per category are in src/lib/post-tone.ts.

To rename the categories, change the list in blogFields in src/config/collections.ts, the colours and icons in src/lib/post-tone.ts, the list of filters in src/views/BlogIndexView.astro, and their names under blogPage.categories in the translations.

In a post

An .mdx post can use the theme’s components: import them at the top, under the frontmatter. Headings with ## and ### make the table of contents beside the post; it shows when a post has two or more.