Skip to content
Patchwork
Start free

Writing · · 2 min read

Posts and projects: adding your own

Where the files go, the fields they need, and the covers the theme draws when there's no picture.

On this page
  1. A post
  2. The drawn cover
  3. A project
  4. The portfolio homepage

The blog and the portfolio are folders of Markdown files. The file name is the address, and the fields at the top set the rest.

A post

A post is a .md or .mdx file in src/content/blog/<language>/. This one is src/content/blog/en/posts-and-projects.mdx, so its address is /blog/posts-and-projects/.

---
title: "Posts and projects: adding your own"
description: "One sentence for the card, the page and search engines."
publishedAt: 2026-11-26
author: "Hans Martens"
category: writing
cover: "posts"
icon: "pen-line"
---

category is product, engineering or writing. It sets the filter on the blog and the colour of the cover.

The drawn cover

This post has no picture, so the theme draws its cover: a glow, a grid and dots in the category’s colour, with the icon and the cover word in the middle. icon takes any name from lucide.dev/icons. With an image field the post shows that picture instead.

A project

A project is a file in src/content/projects/<language>/. Its fields describe it for the card and the page: title, description, category, year, a cover picture or a tone for a drawn one, client, services, and links to the live site and the code.

The project page’s hero is much wider than a card. Give a project a hero picture of about 2.4:1, with the subject in the middle, so the hero doesn’t cut off its top and bottom.

The portfolio homepage

With homepage: 'portfolio', the hero shows a project in a tilted screen. Give a project a screen (a screenshot without a device) or a screenVideo (a short recording with a poster), and the first one that has either is shown. The video plays muted after the page has loaded, and reduced motion keeps the poster.

Posts and Projects in the docs list every field.

Back to blog
Share:

Related posts

Start today

Your next release, read by everyone.

Free for 14 days. No credit card needed.